change undef/def MKSH_NOVI into 0/1 MKSH_S_NOVI flag (with more to come:
MKSH_S_EDIT for small (Emacs) editing mode, MKSH_S_FEAT for all the dis- abled language features), which can be set to 0 despite MKSH_SMALL being defined to re-enable the Vi command line editing mode (which I wouldn't, but fits into the general mastermind scheme)
This commit is contained in:
4
lex.c
4
lex.c
@ -22,7 +22,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.96 2009/09/23 18:04:56 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.97 2009/09/24 17:15:31 tg Exp $");
|
||||
|
||||
/*
|
||||
* states while lexing word
|
||||
@ -1325,7 +1325,7 @@ getsc_line(Source *s)
|
||||
alarm(ksh_tmout);
|
||||
}
|
||||
if (have_tty && (
|
||||
#ifndef MKSH_NOVI
|
||||
#if !MKSH_S_NOVI
|
||||
Flag(FVI) ||
|
||||
#endif
|
||||
Flag(FEMACS) || Flag(FGMACS))) {
|
||||
|
Reference in New Issue
Block a user