tweaks: rename a symbol, to match its corresponding option
parent
67c69b2298
commit
997826d794
|
@ -706,8 +706,8 @@ void window_init(void)
|
|||
/* In case the terminal shrunk, make sure the status line is clear. */
|
||||
wipe_statusbar();
|
||||
|
||||
/* Turn the keypad on for the windows, if necessary. */
|
||||
if (!ISSET(REBIND_KEYPAD)) {
|
||||
/* When not disabled, turn escape-sequence translation on. */
|
||||
if (!ISSET(RAW_SEQUENCES)) {
|
||||
keypad(topwin, TRUE);
|
||||
keypad(edit, TRUE);
|
||||
keypad(bottomwin, TRUE);
|
||||
|
@ -1528,7 +1528,7 @@ int get_keycode(const char *keyname, const int standard)
|
|||
return key_defined(keyvalue);
|
||||
#endif
|
||||
#ifdef DEBUG
|
||||
if (!ISSET(REBIND_KEYPAD))
|
||||
if (!ISSET(RAW_SEQUENCES))
|
||||
fprintf(stderr, "Using fallback keycode for %s\n", keyname);
|
||||
#endif
|
||||
return standard;
|
||||
|
@ -2131,7 +2131,7 @@ int main(int argc, char **argv)
|
|||
break;
|
||||
#endif
|
||||
case 'K':
|
||||
SET(REBIND_KEYPAD);
|
||||
SET(RAW_SEQUENCES);
|
||||
break;
|
||||
case 'L':
|
||||
SET(NO_NEWLINES);
|
||||
|
|
|
@ -513,7 +513,7 @@ enum
|
|||
MULTIBUFFER,
|
||||
SMOOTH_SCROLL,
|
||||
REBIND_DELETE,
|
||||
REBIND_KEYPAD,
|
||||
RAW_SEQUENCES,
|
||||
NO_CONVERT,
|
||||
BACKUP_FILE,
|
||||
INSECURE_BACKUP,
|
||||
|
|
|
@ -78,7 +78,7 @@ static const rcoption rcopts[] = {
|
|||
#endif
|
||||
{"quickblank", QUICK_BLANK},
|
||||
{"rebinddelete", REBIND_DELETE},
|
||||
{"rebindkeypad", REBIND_KEYPAD},
|
||||
{"rebindkeypad", RAW_SEQUENCES},
|
||||
{"regexp", USE_REGEXP},
|
||||
#ifdef ENABLE_SPELLER
|
||||
{"speller", 0},
|
||||
|
|
|
@ -1538,7 +1538,7 @@ int *get_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
|
|||
* don't get extended keypad values. */
|
||||
if (ISSET(PRESERVE))
|
||||
disable_flow_control();
|
||||
if (!ISSET(REBIND_KEYPAD))
|
||||
if (!ISSET(RAW_SEQUENCES))
|
||||
keypad(win, FALSE);
|
||||
|
||||
/* Read in one keycode, or one or two escapes. */
|
||||
|
@ -1557,7 +1557,7 @@ int *get_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
|
|||
enable_flow_control();
|
||||
/* Use the global window pointers, because a resize may have freed
|
||||
* the data that the win parameter points to. */
|
||||
if (!ISSET(REBIND_KEYPAD)) {
|
||||
if (!ISSET(RAW_SEQUENCES)) {
|
||||
keypad(edit, TRUE);
|
||||
keypad(bottomwin, TRUE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue