diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-09 23:26:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-09 23:26:40 +0100 |
commit | ee85702c10495041791f728e977b86005c4496e8 (patch) | |
tree | ad3a4d7d4d477299da5349d8b9d234243ca33d66 /src/optiondefs.h | |
parent | b0745b221d284e381f1bd4b591cd68ea54b6a51d (diff) | |
download | vim-git-ee85702c10495041791f728e977b86005c4496e8.tar.gz |
patch 8.1.2281: 'showbreak' cannot be set for one windowv8.1.2281
Problem: 'showbreak' cannot be set for one window.
Solution: Make 'showbreak' global-local.
Diffstat (limited to 'src/optiondefs.h')
-rw-r--r-- | src/optiondefs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/optiondefs.h b/src/optiondefs.h index 608593beb..05e04064a 100644 --- a/src/optiondefs.h +++ b/src/optiondefs.h @@ -209,6 +209,9 @@ # define PV_CULOPT OPT_WIN(WV_CULOPT) # define PV_CC OPT_WIN(WV_CC) #endif +#ifdef FEAT_LINEBREAK +# define PV_SBR OPT_BOTH(OPT_WIN(WV_SBR)) +#endif #ifdef FEAT_STL_OPT # define PV_STL OPT_BOTH(OPT_WIN(WV_STL)) #endif @@ -2282,7 +2285,7 @@ static struct vimoption options[] = {(char_u *)FALSE, (char_u *)0L} SCTX_INIT}, {"showbreak", "sbr", P_STRING|P_VI_DEF|P_RALL, #ifdef FEAT_LINEBREAK - (char_u *)&p_sbr, PV_NONE, + (char_u *)&p_sbr, PV_SBR, #else (char_u *)NULL, PV_NONE, #endif |