From 15a24f08987e3831be255333bb84b7bc9c00db24 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 3 Dec 2021 20:43:24 +0000 Subject: 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) --- src/option.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/option.c') diff --git a/src/option.c b/src/option.c index 22dcfc5d1..c6230c402 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; } -- cgit v1.2.1