summaryrefslogtreecommitdiffstats
path: root/src/optionstr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-17 18:09:38 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-17 18:09:38 +0100
commit539aa6b25eaea91dfd1a175cd053c0f259fa2e58 (patch)
treeb99f4cb24f73325ab336faf8beb0faadc6e01592 /src/optionstr.c
parent7170b295b06e3168424985530d8477ed2e058b67 (diff)
patch 8.1.2315: not always using the right window when jumping to an errorv8.1.2315
Problem: Not always using the right window when jumping to an error. Solution: Add the "uselast" flag in 'switchbuf'. (closes #1652)
Diffstat (limited to 'src/optionstr.c')
-rw-r--r--src/optionstr.c3
1 files changed, 2 insertions, 1 deletions
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};