Mercurial > vim
comparison src/drawline.c @ 30509:087c42245022 v9.0.0590
patch 9.0.0590: after exiting Insert mode spelling not checked in next line
Commit: https://github.com/vim/vim/commit/ee09fcc9b6cf24e02899461809da9a5148208ea5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 25 20:58:30 2022 +0100
patch 9.0.0590: after exiting Insert mode spelling not checked in next line
Problem: After exiting Insert mode spelling is not checked in the next
line.
Solution: When spelling is enabled redraw the next line after exiting Insert
mode in case the spell highlight needs updating.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Sep 2022 22:00:04 +0200 |
parents | 3f2fcc517d79 |
children | 6c6ac189a05f |
comparison
equal
deleted
inserted
replaced
30508:fa62c3eb4305 | 30509:087c42245022 |
---|---|
1123 wlv.win_attr = term_get_attr(wp, lnum, -1); | 1123 wlv.win_attr = term_get_attr(wp, lnum, -1); |
1124 } | 1124 } |
1125 #endif | 1125 #endif |
1126 | 1126 |
1127 #ifdef FEAT_SPELL | 1127 #ifdef FEAT_SPELL |
1128 if (wp->w_p_spell | 1128 if (spell_check_window(wp)) |
1129 && *wp->w_s->b_p_spl != NUL | |
1130 && wp->w_s->b_langp.ga_len > 0 | |
1131 && *(char **)(wp->w_s->b_langp.ga_data) != NULL) | |
1132 { | 1129 { |
1133 // Prepare for spell checking. | 1130 // Prepare for spell checking. |
1134 has_spell = TRUE; | 1131 has_spell = TRUE; |
1135 extra_check = TRUE; | 1132 extra_check = TRUE; |
1136 | 1133 |