diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-05-25 18:01:06 +0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-25 18:01:06 +0800 | 
| commit | aa9d46b6724cf3454aca602e64350856827c3ab8 (patch) | |
| tree | 1c95080c85ac0df1b6930aa82f8aeb9476ff7583 /src/nvim/undo.c | |
| parent | ebb10d624825468c1f75bd14725cce500974b673 (diff) | |
| parent | 50efdd6ccf1891392c048b92da5e5d123a30ff26 (diff) | |
| download | rneovim-aa9d46b6724cf3454aca602e64350856827c3ab8.tar.gz rneovim-aa9d46b6724cf3454aca602e64350856827c3ab8.tar.bz2 rneovim-aa9d46b6724cf3454aca602e64350856827c3ab8.zip | |
Merge pull request #23744 from luukvbaal/spell
vim-patch:9.0.{0175,0590,0608,0664}
Diffstat (limited to 'src/nvim/undo.c')
| -rw-r--r-- | src/nvim/undo.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 00a3922a5b..1eb73d85d7 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -120,6 +120,7 @@  #include "nvim/path.h"  #include "nvim/pos.h"  #include "nvim/sha256.h" +#include "nvim/spell.h"  #include "nvim/state.h"  #include "nvim/strings.h"  #include "nvim/types.h" @@ -2372,6 +2373,12 @@ static void u_undoredo(int undo, bool do_buf_event)      }      changed_lines(top + 1, 0, bot, newsize - oldsize, do_buf_event); +    // When text has been changed, possibly the start of the next line +    // may have SpellCap that should be removed or it needs to be +    // displayed.  Schedule the next line for redrawing just in case. +    if (spell_check_window(curwin) && bot <= curbuf->b_ml.ml_line_count) { +      redrawWinline(curwin, bot); +    }      // Set the '[ mark.      if (top + 1 < curbuf->b_op_start.lnum) { | 
