File crash-make-emacs-default.diff of Package crash.16727

---
 main.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

--- a/main.c
+++ b/main.c
@@ -1158,12 +1158,6 @@ setup_environment(int argc, char **argv)
 	pc->flags |= READLINE;
 	pc->editing_mode = "no_mode";
 
-	if ((p1 = getenv("EDITOR"))) {
-		if (strstr(p1, "vi"))
-			pc->editing_mode = "vi";
-		if (strstr(p1, "emacs"))
-			pc->editing_mode = "emacs";
-	}
 
 	/*
 	 *  Resolve $HOME .rc file first, then the one in the local directory.
@@ -1213,7 +1207,7 @@ setup_environment(int argc, char **argv)
 	}
 
 	if (STREQ(pc->editing_mode, "no_mode"))
-		pc->editing_mode = "vi";
+		pc->editing_mode = "emacs";
 
 	machdep_init(SETUP_ENV);
 }
openSUSE Build Service is sponsored by