mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
vim-patch:9.0.1362: ml_get error when going to another tab (#22443)
Problem: ml_get error when going to another tab. (Daniel J. Perry)
Solution: Do not call update_topline() if "curwin" is invalid.
(closes vim/vim#11907)
99ad3a8bb9
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -4813,7 +4813,7 @@ static void win_enter_ext(win_T *const wp, const int flags)
|
||||
|
||||
// Might need to scroll the old window before switching, e.g., when the
|
||||
// cursor was moved.
|
||||
if (*p_spk == 'c') {
|
||||
if (*p_spk == 'c' && !curwin_invalid) {
|
||||
update_topline(curwin);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user