summaryrefslogtreecommitdiffstats
path: root/debian/patches/use_sensible-editor.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:22:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:22:04 +0000
commit91bb3b7bce2297f022a7d48604b1d8e3b9c54a8a (patch)
tree4633b3b9fc6b0a65333f51545214f29a3d0fd1b0 /debian/patches/use_sensible-editor.patch
parentAdding upstream version 3:4.8.30. (diff)
downloadmc-91bb3b7bce2297f022a7d48604b1d8e3b9c54a8a.tar.xz
mc-91bb3b7bce2297f022a7d48604b1d8e3b9c54a8a.zip
Adding debian version 3:4.8.30-1.debian/3%4.8.30-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/use_sensible-editor.patch')
-rw-r--r--debian/patches/use_sensible-editor.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/use_sensible-editor.patch b/debian/patches/use_sensible-editor.patch
new file mode 100644
index 0000000..7d2f251
--- /dev/null
+++ b/debian/patches/use_sensible-editor.patch
@@ -0,0 +1,20 @@
+Last-Update: 2015-03-23
+Forwarded: not-needed
+Bug-Debian: http://bugs.debian.org/549202
+Author: Denis Briand <denis@narcan.fr>
+Author: Yury V. Zaytsev <yury@shurup.com>
+Description: Use sensible-editor to edit files
+
+--- a/lib/global.h
++++ b/lib/global.h
+@@ -123,9 +123,9 @@
+ #define IS_PATH_SEP(c) ((c) == PATH_SEP)
+ #define PATH_ENV_SEP ':'
+ #define TMPDIR_DEFAULT "/tmp"
+ #define SCRIPT_SUFFIX ""
+-#define get_default_editor() "vi"
++#define get_default_editor() "sensible-editor"
+ #define OS_SORT_CASE_SENSITIVE_DEFAULT TRUE
+ #define UTF8_CHAR_LEN 6
+
+ /* struct stat members */