Respect "AST_EDITOR" rather than "EDITOR" so as not to change the default bindings...
authorMark Spencer <markster@digium.com>
Sat, 31 Jul 2004 02:23:27 +0000 (02:23 +0000)
committerMark Spencer <markster@digium.com>
Sat, 31 Jul 2004 02:23:27 +0000 (02:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3547 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c

index 94f7548..024d290 100755 (executable)
@@ -1262,7 +1262,7 @@ static char *cli_complete(EditLine *el, int ch)
 static int ast_el_initialize(void)
 {
        HistEvent ev;
-       char *editor = getenv("EDITOR");
+       char *editor = getenv("AST_EDITOR");
 
        if (el != NULL)
                el_end(el);