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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202107132022.16DKMMw11430574%40masaka.moolenaar.net.

Raspunde prin e-mail lui