diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-09 10:51:05 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-09 10:51:05 +0000 |
commit | e50507126f532a0b0ae65e201a6372b7ea5b0ccd (patch) | |
tree | 91e6c7e0409133dfd761059f03055320e3659cdc /src/ex_getln.c | |
parent | 56150da6879a96db1c84c7ec4ceedeb84969f606 (diff) |
patch 8.2.3763: when editing the cmdline a callback may cause a scroll upv8.2.3763
Problem: When editing the command line a FocusLost callback may cause the
screen to scroll up.
Solution: Do not redraw at the last line but at the same place where the
command line was before. (closes #9295)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 2616afc42a..bffdf657fa 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -3730,6 +3730,10 @@ redrawcmdline(void) redrawcmdline_ex(TRUE); } +/* + * When "do_compute_cmdrow" is TRUE the command line is redrawn at the bottom. + * If FALSE cmdline_row is used, which should redraw in the same place. + */ void redrawcmdline_ex(int do_compute_cmdrow) { |