From ee85702c10495041791f728e977b86005c4496e8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 9 Nov 2019 23:26:40 +0100 Subject: patch 8.1.2281: 'showbreak' cannot be set for one window Problem: 'showbreak' cannot be set for one window. Solution: Make 'showbreak' global-local. --- src/optionstr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/optionstr.c') 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); } } -- cgit v1.2.3