To: vim_dev@googlegroups.com Subject: Patch 8.2.3159 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///