Mercurial > vim
comparison src/terminal.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 | 3af56224dca6 |
children | 28745eec1dda |
comparison
equal
deleted
inserted
replaced
26465:1ff39af446ad | 26466:d413104a94c8 |
---|---|
1256 // already | 1256 // already |
1257 if (buffer == curbuf && curbuf->b_term != NULL) | 1257 if (buffer == curbuf && curbuf->b_term != NULL) |
1258 update_cursor(curbuf->b_term, TRUE); | 1258 update_cursor(curbuf->b_term, TRUE); |
1259 } | 1259 } |
1260 else | 1260 else |
1261 redraw_after_callback(TRUE); | 1261 redraw_after_callback(TRUE, FALSE); |
1262 } | 1262 } |
1263 } | 1263 } |
1264 | 1264 |
1265 /* | 1265 /* |
1266 * Send a mouse position and click to the vterm | 1266 * Send a mouse position and click to the vterm |