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

@@ -2340,7 +2340,6 @@ void showmatch(int c)
dollar_vcol = -1;
}
curwin->w_virtcol++; // do display ')' just before "$"
update_screen(); // show the new char first
colnr_T save_dollar_vcol = dollar_vcol;
int save_state = State;
@@ -2349,7 +2348,8 @@ void showmatch(int c)
curwin->w_cursor = mpos; // move to matching char
*so = 0; // don't use 'scrolloff' here
*siso = 0; // don't use 'sidescrolloff' here
show_cursor_info(false);
show_cursor_info_later(false);
update_screen(); // show the new char
setcursor();
ui_flush();
// Restore dollar_vcol(), because setcursor() may call curs_rows()