Patch 9.0.0780
Problem: 'scroll' value computed in unexpected location.
Solution: Compute 'scroll' when the window height is changed. (Luuk van
Baal, closes #11387)
Files: src/window.c
*** ../vim-9.0.0779/src/window.c 2022-10-13 22:12:07.172673790 +0100
--- src/window.c 2022-10-17 14:20:23.679735917 +0100
***************
*** 6378,6384 ****
invalidate_botline_win(wp);
validate_botline_win(wp);
}
- win_comp_scroll(wp);
wp->w_prev_height = wp->w_height;
wp->w_prev_winrow = wp->w_winrow;
}
--- 6378,6383 ----
***************
*** 6472,6477 ****
--- 6471,6477 ----
wp->w_height = height;
wp->w_skipcol = 0;
+ win_comp_scroll(wp);
// There is no point in adjusting the scroll position when exiting. Some
// values might be invalid.
***************
*** 6596,6602 ****
if (prev_height > 0)
wp->w_prev_fraction_row = wp->w_wrow;
- win_comp_scroll(wp);
redraw_win_later(wp, UPD_SOME_VALID);
wp->w_redr_status = TRUE;
invalidate_botline_win(wp);
--- 6596,6601 ----
*** ../vim-9.0.0779/src/version.c 2022-10-17 13:32:13.677965004 +0100
--- src/version.c 2022-10-17 14:21:50.127755362 +0100
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 780,
/**/
--
A parent can be arrested if his child cannot hold back a burp during a church
service.
[real standing law in Nebraska, United States of America]
/// 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 ///