Patch 8.2.3159

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 13, 2021, 4:22:28 PM7/13/21
to vim...@googlegroups.com

Patch 8.2.3159
Problem: Cursor displayed in wrong position after deleting line.
Solution: When deleting lines do not approximate botline. (fixes #8559)
Files: src/change.c


*** ../vim-8.2.3158/src/change.c 2021-05-16 20:18:51.025536634 +0200
--- src/change.c 2021-07-13 22:20:19.885582034 +0200
***************
*** 563,571 ****
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);
}

// Check if any w_lines[] entries have become invalid.
--- 563,574 ----
changed_cline_bef_curs_win(wp);
if (wp->w_botline >= lnum)
{
! 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.
*** ../vim-8.2.3158/src/version.c 2021-07-13 20:32:26.259186757 +0200
--- src/version.c 2021-07-13 22:21:13.717504810 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3159,
/**/

--
Never eat yellow snow.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages