mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
vim-patch:9.0.1578: SpellCap highlight not always updated when needed (#23755)
Problem: SpellCap highlight not always updated when needed.
Solution: Handle updating line below closed fold and other situations where
only part of the window is redrawn. (Luuk van Baal, closes vim/vim#12428,
closes vim/vim#12420)
2ac6497f0e
This commit is contained in:
@@ -509,7 +509,7 @@ void spell_suggest(int count)
|
||||
// Get the word and its length.
|
||||
|
||||
// Figure out if the word should be capitalised.
|
||||
int need_cap = check_need_cap(curwin->w_cursor.lnum, curwin->w_cursor.col);
|
||||
int need_cap = check_need_cap(curwin, curwin->w_cursor.lnum, curwin->w_cursor.col);
|
||||
|
||||
// Make a copy of current line since autocommands may free the line.
|
||||
line = xstrdup(get_cursor_line_ptr());
|
||||
|
Reference in New Issue
Block a user