Mercurial > vim
comparison src/ex_getln.c @ 26466:d413104a94c8 v8.2.3763
patch 8.2.3763: when editing the cmdline a callback may cause a scroll up
Commit: https://github.com/vim/vim/commit/e50507126f532a0b0ae65e201a6372b7ea5b0ccd
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 9 10:51:05 2021 +0000
patch 8.2.3763: when editing the cmdline a callback may cause a scroll up
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Dec 2021 12:00:05 +0100 |
parents | 41b3718d84c3 |
children | 34f1b7d6974a |
comparison
equal
deleted
inserted
replaced
26465:1ff39af446ad | 26466:d413104a94c8 |
---|---|
3728 redrawcmdline(void) | 3728 redrawcmdline(void) |
3729 { | 3729 { |
3730 redrawcmdline_ex(TRUE); | 3730 redrawcmdline_ex(TRUE); |
3731 } | 3731 } |
3732 | 3732 |
3733 /* | |
3734 * When "do_compute_cmdrow" is TRUE the command line is redrawn at the bottom. | |
3735 * If FALSE cmdline_row is used, which should redraw in the same place. | |
3736 */ | |
3733 void | 3737 void |
3734 redrawcmdline_ex(int do_compute_cmdrow) | 3738 redrawcmdline_ex(int do_compute_cmdrow) |
3735 { | 3739 { |
3736 if (cmd_silent) | 3740 if (cmd_silent) |
3737 return; | 3741 return; |