mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-01 04:26:47 +01:00
- prevented crash when a program to open a link is not found.
This commit is contained in:
parent
07d04f760a
commit
bc3e7685a7
@ -769,7 +769,7 @@
|
|||||||
(gen-simple-access (all-link-open-program) +key-open-link-helper+)
|
(gen-simple-access (all-link-open-program) +key-open-link-helper+)
|
||||||
|
|
||||||
(defun link-regex->program-to-use (link)
|
(defun link-regex->program-to-use (link)
|
||||||
(let ((found (find-if (lambda (a)
|
(when-let ((found (find-if (lambda (a)
|
||||||
(cl-ppcre:scan (re a) link))
|
(cl-ppcre:scan (re a) link))
|
||||||
(config-all-link-open-program))))
|
(config-all-link-open-program))))
|
||||||
(program-name found)))
|
(program-name found)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user