1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Change fallback default editor to 'editor'
Change the default fallback editor from 'nano' to 'editor' to comply to Debian
policy ยง11.4. If not explicitly configured, glab tries to evaluate the
environment variables GIT_EDITOR, VISUAL or EDITOR before using its built-in
fallback editor of choice.
Author: Nicolas Schier <n.schier@avm.de>
Bug-Debian: https://bugs.debian.org/1041934
Forwarded: not-needed
Last-Update: 2023-08-31
--- glab-1.32.0.orig/pkg/surveyext/surveyext.go
+++ glab-1.32.0/pkg/surveyext/surveyext.go
@@ -19,7 +19,7 @@ import (
var (
bom = []byte{0xef, 0xbb, 0xbf}
- defaultEditor = "nano" // EXTENDED to switch from vim as a default editor
+ defaultEditor = "editor" // EXTENDED to switch from vim as a default editor
editorSkipKey = 's'
editorOpenKey = 'e'
)
|