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/optionstr.c | |
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/optionstr.c')
-rw-r--r-- | src/optionstr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/optionstr.c b/src/optionstr.c index bcc737eb1..143c8dd54 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -1440,12 +1440,12 @@ did_set_string_option( #ifdef FEAT_LINEBREAK // 'showbreak' - else if (varp == &p_sbr) + else if (gvarp == &p_sbr) { - for (s = p_sbr; *s; ) + for (s = *varp; *s; ) { if (ptr2cells(s) != 1) - errmsg = N_("E595: contains unprintable or wide character"); + errmsg = N_("E595: 'showbreak' contains unprintable or wide character"); MB_PTR_ADV(s); } } |