summaryrefslogtreecommitdiffstats
path: root/src/optionstr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-09 23:26:40 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-09 23:26:40 +0100
commitee85702c10495041791f728e977b86005c4496e8 (patch)
treead3a4d7d4d477299da5349d8b9d234243ca33d66 /src/optionstr.c
parentb0745b221d284e381f1bd4b591cd68ea54b6a51d (diff)
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/optionstr.c b/src/optionstr.c
index bcc737eb17..143c8dd542 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);
}
}