summaryrefslogtreecommitdiff
path: root/src/option.h
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/option.h
parent7170b295b06e3168424985530d8477ed2e058b67 (diff)
downloadvim-git-539aa6b25eaea91dfd1a175cd053c0f259fa2e58.tar.gz
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/option.h')
-rw-r--r--src/option.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/option.h b/src/option.h
index 2a4ffbaf6..6ab19899d 100644
--- a/src/option.h
+++ b/src/option.h
@@ -911,11 +911,13 @@ EXTERN char_u *p_su; // 'suffixes'
EXTERN char_u *p_sws; // 'swapsync'
EXTERN char_u *p_swb; // 'switchbuf'
EXTERN unsigned swb_flags;
+// Keep in sync with p_swb_values in optionstr.c
#define SWB_USEOPEN 0x001
#define SWB_USETAB 0x002
#define SWB_SPLIT 0x004
#define SWB_NEWTAB 0x008
#define SWB_VSPLIT 0x010
+#define SWB_USELAST 0x020
EXTERN char_u *p_syn; // 'syntax'
EXTERN long p_ts; // 'tabstop'
EXTERN int p_tbs; // 'tagbsearch'