diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-03-12 13:47:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 13:47:39 +0100 |
commit | e5f4394eb7a27a9e5eaab088e6acf5553c64cf59 (patch) | |
tree | 96121391a4fec3845248eab7571819c9ebbda1a6 /src/nvim/ex_cmds.c | |
parent | d15abd1be4ae85b10174e3ee139d3b7605e87577 (diff) | |
parent | 846a056744bf458d4376cd7638c94f7c82862046 (diff) | |
download | rneovim-e5f4394eb7a27a9e5eaab088e6acf5553c64cf59.tar.gz rneovim-e5f4394eb7a27a9e5eaab088e6acf5553c64cf59.tar.bz2 rneovim-e5f4394eb7a27a9e5eaab088e6acf5553c64cf59.zip |
Merge pull request #22590 from bfredl/status2
refactor(redraw): make cursor position use the "redraw later" pattern
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index a12c2a15b4..d398d3e06e 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -3747,6 +3747,7 @@ static int do_sub(exarg_T *eap, proftime_T timeout, long cmdpreview_ns, handle_T update_topline(curwin); validate_cursor(); redraw_later(curwin, UPD_SOME_VALID); + show_cursor_info_later(true); update_screen(); highlight_match = false; redraw_later(curwin, UPD_SOME_VALID); @@ -3765,7 +3766,6 @@ static int do_sub(exarg_T *eap, proftime_T timeout, long cmdpreview_ns, handle_T _("replace with %s (y/n/a/q/l/^E/^Y)?"), sub); msg_no_more = false; msg_scroll = (int)i; - show_cursor_info(true); if (!ui_has(kUIMessages)) { ui_cursor_goto(msg_row, msg_col); } |