1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-01-15 02:36:03 +01:00

allow editor to be nil

This commit is contained in:
Omar Polo 2021-05-28 17:47:19 +00:00
parent f8352e5212
commit 61c8adb649
2 changed files with 5 additions and 3 deletions

View File

@ -63,7 +63,9 @@
(let ((error-message
(_ "No editor found, please configure the 'editor' directive in your configuration file"))
(editor (or (swconf:external-editor)
(getenv "EDITOR"))))
(getenv "VISUAL")
(getenv "EDITOR")
"ed")))
(if (null editor)
(error error-message)
(let ((space (cl-ppcre:scan "\\s" editor)))

View File

@ -757,8 +757,8 @@
4))
(defun external-editor ()
(access-non-null-conf-value *software-configuration*
+key-editor+))
(access:access *software-configuration*
+key-editor+))
(defun color-regexps ()
(access:accesses *software-configuration*