File: use_sensible-editor.patch

package info (click to toggle)
mc 3%3A4.8.33-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,536 kB
  • sloc: ansic: 100,652; sh: 8,463; perl: 2,339; makefile: 1,501; cs: 44; lisp: 44; sed: 16
file content (20 lines) | stat: -rw-r--r-- 641 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
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/unixcompat.h
+++ b/lib/unixcompat.h
@@ -109,9 +109,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
 
 /*** enums ***************************************************************************************/