comparison src/optionstr.c @ 26111:1d326bc99a09 v8.2.3588

patch 8.2.3588: break statement is never reached Commit: https://github.com/vim/vim/commit/606efc7df4c94104bbd24248106dd0e4ee6f7cfa Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 12 19:52:47 2021 +0000 patch 8.2.3588: break statement is never reached Problem: Break statement is never reached. Solution: Rely on return value of set_chars_option() not changing. (closes #9103)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Nov 2021 21:00:06 +0100
parents 30e60bfd5fb3
children 6b4f017d7005
comparison
equal deleted inserted replaced
26110:a41dc6b40896 26111:1d326bc99a09
1329 // The current window is set to use the global 'listchars' value. 1329 // The current window is set to use the global 'listchars' value.
1330 // So clear the window-local value. 1330 // So clear the window-local value.
1331 if (!(opt_flags & OPT_GLOBAL)) 1331 if (!(opt_flags & OPT_GLOBAL))
1332 clear_string_option(&curwin->w_p_lcs); 1332 clear_string_option(&curwin->w_p_lcs);
1333 FOR_ALL_TAB_WINDOWS(tp, wp) 1333 FOR_ALL_TAB_WINDOWS(tp, wp)
1334 { 1334 // If no error was returned above, we don't expect an error
1335 errmsg = set_chars_option(wp, &wp->w_p_lcs); 1335 // here, so ignore the return value.
1336 if (errmsg) 1336 (void)set_chars_option(wp, &wp->w_p_lcs);
1337 break; 1337
1338 }
1339 redraw_all_later(NOT_VALID); 1338 redraw_all_later(NOT_VALID);
1340 } 1339 }
1341 } 1340 }
1342 1341
1343 // local 'listchars' 1342 // local 'listchars'