refactor(redraw): make cursor position redraw use the "redraw later" pattern

This commit is contained in:
bfredl
2023-03-09 11:45:20 +01:00
parent d15abd1be4
commit 846a056744
9 changed files with 31 additions and 42 deletions

View File

@@ -2255,9 +2255,6 @@ static char *set_bool_option(const int opt_idx, char *const varp, const int valu
if ((int *)varp == &p_ru || (int *)varp == &p_sc) {
// in case 'ruler' or 'showcmd' changed
comp_col();
if ((int *)varp == &p_ru) {
win_redr_ruler(curwin);
}
}
if (curwin->w_curswant != MAXCOL
&& (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0) {