0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.1.2281: 'showbreak' cannot be set for one window

Problem:    'showbreak' cannot be set for one window.
Solution:   Make 'showbreak' global-local.
This commit is contained in:
Bram Moolenaar
2019-11-09 23:26:40 +01:00
parent b0745b221d
commit ee85702c10
16 changed files with 104 additions and 30 deletions

View File

@@ -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);
}
}