mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
640680ccce
Problem: ml_get error when scrolling after delete
Solution: mark topline to be validated in main_loop
if it is larger than current buffers line
count
reset_lnums() is called after e.g. TextChanged autocommands and it may
accidentally cause curwin->w_topline to become invalid, e.g. if the
autocommand has deleted some lines.
So verify that curwin->w_topline points to a valid line and if not, mark
the window to have w_topline recalculated in main_loop() in
update_topline() after reset_lnums() returns.
fixes: vim/vim#13568
fixes: vim/vim#13578
|
||
---|---|---|
.. | ||
autocmd_oldtest_spec.lua | ||
autocmd_spec.lua | ||
bufenter_spec.lua | ||
bufmodifiedset_spec.lua | ||
cmdline_spec.lua | ||
cursorhold_spec.lua | ||
cursormoved_spec.lua | ||
dirchanged_spec.lua | ||
filetype_spec.lua | ||
focus_spec.lua | ||
modechanged_spec.lua | ||
recording_spec.lua | ||
safestate_spec.lua | ||
searchwrapped_spec.lua | ||
show_spec.lua | ||
signal_spec.lua | ||
tabclose_spec.lua | ||
tabnew_spec.lua | ||
tabnewentered_spec.lua | ||
termxx_spec.lua | ||
textchanged_spec.lua | ||
textyankpost_spec.lua | ||
win_scrolled_resized_spec.lua |