From 539aa6b25eaea91dfd1a175cd053c0f259fa2e58 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 17 Nov 2019 18:09:38 +0100 Subject: patch 8.1.2315: not always using the right window when jumping to an error Problem: Not always using the right window when jumping to an error. Solution: Add the "uselast" flag in 'switchbuf'. (closes #1652) --- src/optionstr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/optionstr.c') diff --git a/src/optionstr.c b/src/optionstr.c index 143c8dd542..b63a351c63 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -39,7 +39,8 @@ static char *(p_ssop_values[]) = {"buffers", "winpos", "resize", "winsize", "localoptions", "options", "help", "blank", "globals", "slash", "unix", "sesdir", "curdir", "folds", "cursor", "tabpages", "terminal", NULL}; #endif -static char *(p_swb_values[]) = {"useopen", "usetab", "split", "newtab", "vsplit", NULL}; +// Keep in sync with SWB_ flags in option.h +static char *(p_swb_values[]) = {"useopen", "usetab", "split", "newtab", "vsplit", "uselast", NULL}; static char *(p_tc_values[]) = {"followic", "ignore", "match", "followscs", "smart", NULL}; #if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_MSWIN) static char *(p_toolbar_values[]) = {"text", "icons", "tooltips", "horiz", NULL}; -- cgit v1.2.3