Respect "AST_EDITOR" rather than "EDITOR" so as not to change the default bindings from emacs to vi (bug #2185)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3547 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
61791ff23d
commit
db1f27983c
|
@ -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