File: 0004-use-editor-as-fallback.patch

package info (click to toggle)
glab 1.53.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,936 kB
  • sloc: sh: 295; makefile: 153; perl: 99; ruby: 68; javascript: 67
file content (21 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (2)
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'
 )