mirror of
https://github.com/neovim/neovim.git
synced 2026-04-28 18:24:13 +00:00
vim-patch:8.2.2198: ml_get error when resizing window and using text property
Problem: ml_get error when resizing window and using text property.
Solution: Validate botline of the right window. (closes vim/vim#7528)
23999d799c
Migrate to Vim's (in)validate_botline_win() API.
Nvim wants to pass "curwin" instead of hiding them
behind alias/macro/inline-function.
https://github.com/neovim/neovim/pull/37164#discussion_r2655006908
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
committed by
Jan Edmund Lazo
parent
0f9aae20ec
commit
ff8edbaa6c
@@ -1269,7 +1269,7 @@ static void fix_cursor(win_T *win, linenr_T lo, linenr_T hi, linenr_T extra)
|
||||
win->w_valid &= ~(VALID_BOTLINE_AP);
|
||||
update_topline(win);
|
||||
} else {
|
||||
invalidate_botline(win);
|
||||
invalidate_botline_win(win);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1343,7 +1343,7 @@ static void fix_cursor_cols(win_T *win, linenr_T start_row, colnr_T start_col, l
|
||||
|
||||
check_cursor_col(win);
|
||||
changed_cline_bef_curs(win);
|
||||
invalidate_botline(win);
|
||||
invalidate_botline_win(win);
|
||||
}
|
||||
|
||||
/// Initialise a string array either:
|
||||
|
||||
Reference in New Issue
Block a user