File: use_editor_as_default

package info (click to toggle)
stgit 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,752 kB
  • sloc: python: 10,558; sh: 5,739; lisp: 2,678; makefile: 142; perl: 42
file content (24 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Maximiliano Curia <maxy@debian.org>
Date: Sat, 2 Sep 2017 14:06:57 +0200
Subject: Debian patch, the best default editor is editor

Author: Yann Dirson <dirson@debian.org>
Forwarded: not-needed
Last-Update: 2014-03-26
---
 stgit/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stgit/utils.py b/stgit/utils.py
index cdcc4a9..fbd79a2 100644
--- a/stgit/utils.py
+++ b/stgit/utils.py
@@ -176,7 +176,7 @@ def get_editor():
                    config.get('core.editor'),
                    environ_get('VISUAL'),
                    environ_get('EDITOR'),
-                   'vi']:
+                   'editor']:
         if editor:
             return editor