aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony Chen <tchen1998@gmail.com>2022-04-02 12:35:33 -0400
committerTony Chen <tchen1998@gmail.com>2022-04-02 12:35:33 -0400
commitea71c26ec922a80cf2f05d5bc553dc70f0e130f0 (patch)
tree99d58660862f2aa2360cab04169407dafc9d4f89 /src
parent2a466001401c5a6d67ca9e33ae9630939150d09f (diff)
downloadrneovim-ea71c26ec922a80cf2f05d5bc553dc70f0e130f0.tar.gz
rneovim-ea71c26ec922a80cf2f05d5bc553dc70f0e130f0.tar.bz2
rneovim-ea71c26ec922a80cf2f05d5bc553dc70f0e130f0.zip
fix(extmarks): splice extmarks on accepting spell
Diffstat (limited to 'src')
-rw-r--r--src/nvim/spell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index fb644daa39..e65ca2e6a6 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -3066,7 +3066,7 @@ void spell_suggest(int count)
ml_replace(curwin->w_cursor.lnum, p, false);
curwin->w_cursor.col = c;
- changed_bytes(curwin->w_cursor.lnum, c);
+ inserted_bytes(curwin->w_cursor.lnum, c, stp->st_orglen, stp->st_wordlen);
} else {
curwin->w_cursor = prev_cursor;
}