mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
vim-patch:8.2.3564: invalid memory access when scrolling without valid screen (#21335)
vim-patch:8.2.3564: invalid memory access when scrolling without valid screen
Problem: Invalid memory access when scrolling without a valid screen.
Solution: Do not set VALID_BOTLINE in w_valid.
777e7c21b7
Remove -Z flag when using RunVim().
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -158,7 +158,6 @@ void update_topline(win_T *wp)
|
||||
if (!default_grid.chars || wp->w_height_inner == 0) {
|
||||
wp->w_topline = wp->w_cursor.lnum;
|
||||
wp->w_botline = wp->w_topline;
|
||||
wp->w_valid |= VALID_BOTLINE|VALID_BOTLINE_AP;
|
||||
wp->w_viewport_invalid = true;
|
||||
wp->w_scbind_pos = 1;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user