comparison 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
comparison
equal deleted inserted replaced
18573:f18a4ae518f1 18574:8b0114ffde2b
1438 } 1438 }
1439 } 1439 }
1440 1440
1441 #ifdef FEAT_LINEBREAK 1441 #ifdef FEAT_LINEBREAK
1442 // 'showbreak' 1442 // 'showbreak'
1443 else if (varp == &p_sbr) 1443 else if (gvarp == &p_sbr)
1444 { 1444 {
1445 for (s = p_sbr; *s; ) 1445 for (s = *varp; *s; )
1446 { 1446 {
1447 if (ptr2cells(s) != 1) 1447 if (ptr2cells(s) != 1)
1448 errmsg = N_("E595: contains unprintable or wide character"); 1448 errmsg = N_("E595: 'showbreak' contains unprintable or wide character");
1449 MB_PTR_ADV(s); 1449 MB_PTR_ADV(s);
1450 } 1450 }
1451 } 1451 }
1452 #endif 1452 #endif
1453 1453