diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-01-17 01:55:28 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-01-17 13:39:42 +0000 |
commit | d88814ef68b3f2ad3ed005ee0683eff063b017a6 (patch) | |
tree | 106e75c7849fbc0706ed91badd3b3e979af4850a /src | |
parent | 4615d46f93fb0b15a427f428bb1e652b4ccb873b (diff) | |
download | rneovim-d88814ef68b3f2ad3ed005ee0683eff063b017a6.tar.gz rneovim-d88814ef68b3f2ad3ed005ee0683eff063b017a6.tar.bz2 rneovim-d88814ef68b3f2ad3ed005ee0683eff063b017a6.zip |
fix(column): remove sign from line it was previously on with undo
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/undo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index d343fb5fa0..d517f07b32 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -2389,7 +2389,9 @@ static void u_undoredo(bool undo, bool 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) { + // Also just in case the line had a sign which needs to be removed. + if ((spell_check_window(curwin) || curbuf->b_signs_with_text) + && bot <= curbuf->b_ml.ml_line_count) { redrawWinline(curwin, bot); } |