mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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 vim/vim#9103)
606efc7df4
This commit is contained in:
parent
8dbe47a4bc
commit
145fc69df9
@ -2659,7 +2659,9 @@ ambw_end:
|
||||
clear_string_option(&curwin->w_p_lcs);
|
||||
}
|
||||
FOR_ALL_TAB_WINDOWS(tp, wp) {
|
||||
set_chars_option(wp, &wp->w_p_lcs, true);
|
||||
// If no error was returned above, we don't expect an error
|
||||
// here, so ignore the return value.
|
||||
(void)set_chars_option(wp, &wp->w_p_lcs, true);
|
||||
}
|
||||
redraw_all_later(NOT_VALID);
|
||||
}
|
||||
@ -2674,7 +2676,9 @@ ambw_end:
|
||||
clear_string_option(&curwin->w_p_fcs);
|
||||
}
|
||||
FOR_ALL_TAB_WINDOWS(tp, wp) {
|
||||
set_chars_option(wp, &wp->w_p_fcs, true);
|
||||
// If no error was returned above, we don't expect an error
|
||||
// here, so ignore the return value.
|
||||
(void)set_chars_option(wp, &wp->w_p_fcs, true);
|
||||
}
|
||||
redraw_all_later(NOT_VALID);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user