Mercurial > vim
diff src/spellsuggest.c @ 32493:0632606a2530 v9.0.1578
patch 9.0.1578: SpellCap highlight not always updated when needed
Commit: https://github.com/vim/vim/commit/2ac6497f0ef186f0e3ba67d7f0a485bfb612bb08
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Thu May 25 17:14:42 2023 +0100
patch 9.0.1578: SpellCap highlight not always updated when needed
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 #12428,
closes #12420)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 May 2023 18:15:04 +0200 |
parents | 04d9dff67d99 |
children | 448aef880252 |
line wrap: on
line diff
--- a/src/spellsuggest.c +++ b/src/spellsuggest.c @@ -538,7 +538,8 @@ spell_suggest(int count) // Get the word and its length. // Figure out if the word should be capitalised. - need_cap = check_need_cap(curwin->w_cursor.lnum, curwin->w_cursor.col); + 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 = vim_strsave(ml_get_curline());