Mercurial > vim
comparison src/ex_docmd.c @ 28530:80085afc2f4d v8.2.4789
patch 8.2.4789: cursor pos wrong when using :redraw while editing the cmdline
Commit: https://github.com/vim/vim/commit/a653e53b1f4ba08de0dbcea06288cf0cc1c6e752
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 19 11:38:24 2022 +0100
patch 8.2.4789: cursor pos wrong when using :redraw while editing the cmdline
Problem: The cursor may be in the in wrong place when using :redraw while
editing the cmdline.
Solution: When editing the command line let :redraw update the command line
too. (closes #10210)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 19 Apr 2022 12:45:03 +0200 |
parents | 0ae0946ebf9b |
children | dfe18756f2ad |
comparison
equal
deleted
inserted
replaced
28529:5f29eb9fcbc8 | 28530:80085afc2f4d |
---|---|
8321 msg_col = 0; | 8321 msg_col = 0; |
8322 | 8322 |
8323 // No need to wait after an intentional redraw. | 8323 // No need to wait after an intentional redraw. |
8324 need_wait_return = FALSE; | 8324 need_wait_return = FALSE; |
8325 | 8325 |
8326 // When invoked from a callback or autocmd the command line may be active. | |
8327 if (State & CMDLINE) | |
8328 redrawcmdline(); | |
8329 | |
8326 out_flush(); | 8330 out_flush(); |
8327 } | 8331 } |
8328 | 8332 |
8329 /* | 8333 /* |
8330 * ":redrawstatus": force redraw of status line(s) | 8334 * ":redrawstatus": force redraw of status line(s) |