Mercurial > vim
diff src/optionstr.c @ 18646:394abd397e15 v8.1.2315
patch 8.1.2315: not always using the right window when jumping to an error
Commit: https://github.com/vim/vim/commit/539aa6b25eaea91dfd1a175cd053c0f259fa2e58
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 17 18:09:38 2019 +0100
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 https://github.com/vim/vim/issues/1652)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Nov 2019 18:15:03 +0100 |
parents | 8b0114ffde2b |
children | 49b78d6465e5 |
line wrap: on
line diff
--- a/src/optionstr.c +++ b/src/optionstr.c @@ -39,7 +39,8 @@ static char *(p_ssop_values[]) = {"buffe "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};