mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Respect "AST_EDITOR" rather than "EDITOR" so as not to change the default bindings from emacs to vi (bug #2185)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user