summaryrefslogtreecommitdiffstats
path: root/src/optionstr.c
diff options
context:
space:
mode:
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);
}
}