diff options
Diffstat (limited to 'lib/readline/terminal.c')
-rw-r--r-- | lib/readline/terminal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/readline/terminal.c b/lib/readline/terminal.c index 768ec9b..ee13092 100644 --- a/lib/readline/terminal.c +++ b/lib/readline/terminal.c @@ -528,8 +528,8 @@ _rl_init_terminal_io (terminal_name) /* Check to see if this terminal has a meta key and clear the capability variables if there is none. */ - term_has_meta = (tgetflag ("km") || tgetflag ("MT")); - if (!term_has_meta) + term_has_meta = tgetflag ("km") != 0; + if (term_has_meta == 0) _rl_term_mm = _rl_term_mo = (char *)NULL; /* Attempt to find and bind the arrow keys. Do not override already |