Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
32492:8064be0111ef | 32493:0632606a2530 |
---|---|
536 } | 536 } |
537 | 537 |
538 // Get the word and its length. | 538 // Get the word and its length. |
539 | 539 |
540 // Figure out if the word should be capitalised. | 540 // Figure out if the word should be capitalised. |
541 need_cap = check_need_cap(curwin->w_cursor.lnum, curwin->w_cursor.col); | 541 need_cap = check_need_cap(curwin, curwin->w_cursor.lnum, |
542 curwin->w_cursor.col); | |
542 | 543 |
543 // Make a copy of current line since autocommands may free the line. | 544 // Make a copy of current line since autocommands may free the line. |
544 line = vim_strsave(ml_get_curline()); | 545 line = vim_strsave(ml_get_curline()); |
545 if (line == NULL) | 546 if (line == NULL) |
546 goto skip; | 547 goto skip; |