Mercurial > vim
diff src/optionstr.c @ 18574:8b0114ffde2b v8.1.2281
patch 8.1.2281: 'showbreak' cannot be set for one window
Commit: https://github.com/vim/vim/commit/ee85702c10495041791f728e977b86005c4496e8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 9 23:26:40 2019 +0100
patch 8.1.2281: 'showbreak' cannot be set for one window
Problem: 'showbreak' cannot be set for one window.
Solution: Make 'showbreak' global-local.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Nov 2019 23:30:03 +0100 |
parents | ba5d8c5d77d7 |
children | 394abd397e15 |
line wrap: on
line diff
--- 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); } }