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
1.0
Mark Spencer 21 years ago
parent c542576190
commit 79a00a33f9

@ -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);

Loading…
Cancel
Save