diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-05 21:09:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-05 21:09:23 +0100 |
commit | ae20f340adc8c96aeec5cff5ef4f2129035ffca4 (patch) | |
tree | 1053beba1daad179dfb22958fbfe86f9a633e93e /src/optiondefs.h | |
parent | e5a3272d32ad52f905ef3e66991871dbef2245e7 (diff) | |
download | vim-git-ae20f340adc8c96aeec5cff5ef4f2129035ffca4.tar.gz |
patch 8.1.2257: MS-Windows GUI: scroll wheel always uses current windowv8.1.2257
Problem: MS-Windows GUI: scroll wheel always uses current window.
Solution: Add the 'scrollfocus' option for MS-Windows.
Diffstat (limited to 'src/optiondefs.h')
-rw-r--r-- | src/optiondefs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/optiondefs.h b/src/optiondefs.h index a1d37f834..608593beb 100644 --- a/src/optiondefs.h +++ b/src/optiondefs.h @@ -2148,6 +2148,13 @@ static struct vimoption options[] = {"scrollbind", "scb", P_BOOL|P_VI_DEF, (char_u *)VAR_WIN, PV_SCBIND, {(char_u *)FALSE, (char_u *)0L} SCTX_INIT}, + {"scrollfocus", "scf", P_BOOL|P_VI_DEF, +#if defined(MSWIN) && defined(FEAT_GUI) + (char_u *)&p_scf, PV_NONE, +#else + (char_u *)NULL, PV_NONE, +#endif + {(char_u *)FALSE, (char_u *)0L} SCTX_INIT}, {"scrolljump", "sj", P_NUM|P_VI_DEF|P_VIM, (char_u *)&p_sj, PV_NONE, {(char_u *)1L, (char_u *)0L} SCTX_INIT}, |