mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3731: "set! termcap" shows codes in one column, but not keys
Problem: "set! termcap" shows codes in one column, but not keys. Solution: Also use one column for keys. (closes #9258)
This commit is contained in:
13
src/option.c
13
src/option.c
@@ -1218,11 +1218,12 @@ ex_set(exarg_T *eap)
|
||||
* does not need to be expanded with option_expand().
|
||||
* "opt_flags":
|
||||
* 0 for ":set"
|
||||
* OPT_GLOBAL for ":setglobal"
|
||||
* OPT_LOCAL for ":setlocal" and a modeline
|
||||
* OPT_MODELINE for a modeline
|
||||
* OPT_WINONLY to only set window-local options
|
||||
* OPT_NOWIN to skip setting window-local options
|
||||
* OPT_GLOBAL for ":setglobal"
|
||||
* OPT_LOCAL for ":setlocal" and a modeline
|
||||
* OPT_MODELINE for a modeline
|
||||
* OPT_WINONLY to only set window-local options
|
||||
* OPT_NOWIN to skip setting window-local options
|
||||
* OPT_ONECOLUMN do not use multiple columns
|
||||
*
|
||||
* returns FAIL if an error is detected, OK otherwise
|
||||
*/
|
||||
@@ -1290,7 +1291,7 @@ do_set(
|
||||
else if (STRNCMP(arg, "termcap", 7) == 0 && !(opt_flags & OPT_MODELINE))
|
||||
{
|
||||
showoptions(2, opt_flags);
|
||||
show_termcodes();
|
||||
show_termcodes(opt_flags);
|
||||
did_show = TRUE;
|
||||
arg += 7;
|
||||
}
|
||||
|
Reference in New Issue
Block a user