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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user