summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-03 20:43:24 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-03 20:43:24 +0000
commit15a24f08987e3831be255333bb84b7bc9c00db24 (patch)
tree2742c778aa1022841de13832c77437cf1b9f5498 /src/option.c
parent800b01b0c8a5983e23d8caa2be6c73d195448193 (diff)
patch 8.2.3731: "set! termcap" shows codes in one column, but not keysv8.2.3731
Problem: "set! termcap" shows codes in one column, but not keys. Solution: Also use one column for keys. (closes #9258)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/option.c b/src/option.c
index 22dcfc5d1f..c6230c4027 100644
--- a/src/option.c
+++ b/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;
}