mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3159: cursor displayed in wrong position after deleting line
Problem: Cursor displayed in wrong position after deleting line. Solution: When deleting lines do not approximate botline. (fixes #8559)
This commit is contained in:
parent
1840a7b4e3
commit
5bea41dea3
@ -563,9 +563,12 @@ changed_common(
|
||||
changed_cline_bef_curs_win(wp);
|
||||
if (wp->w_botline >= lnum)
|
||||
{
|
||||
// Assume that botline doesn't change (inserted lines make
|
||||
// other lines scroll down below botline).
|
||||
approximate_botline_win(wp);
|
||||
if (xtra < 0)
|
||||
invalidate_botline_win(wp);
|
||||
else
|
||||
// Assume that botline doesn't change (inserted lines make
|
||||
// other lines scroll down below botline).
|
||||
approximate_botline_win(wp);
|
||||
}
|
||||
|
||||
// Check if any w_lines[] entries have become invalid.
|
||||
|
@ -755,6 +755,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3159,
|
||||
/**/
|
||||
3158,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user