Package: mc Version: 1:4.6.1-2 Tags: patch Hi,
The mc application has the editor hardcoded to vi when usinf F4. It has it also hardcoded for the "send bug report to root", although for both it first checks the EDITOR environment variable. The attached patch makes it use sensible-editor if EDITOR is not defined. thanks, guillem
#DPATCHLEVEL=0 --- lib/mc.menu 2006-06-13 04:39:19.000000000 +0300 +++ lib/mc.menu 2006-06-13 04:40:26.000000000 +0300 @@ -15,7 +15,7 @@ shell_patterns=0 0 Edit a bug report and send it to root I=`mktemp ${MC_TMPDIR:-/tmp}/mail.XXXXXX` || exit 1 - ${EDITOR-vi} $I + sensible-editor $I test -r $I && mail root < $I rm -f $I --- src/util.h 2006-06-13 04:39:20.000000000 +0300 +++ src/util.h 2006-06-13 04:39:53.000000000 +0300 @@ -217,7 +217,7 @@ void save_file_position (const char *fil #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 1 #define STRCOMP strcmp #define STRNCOMP strncmp