Merge pull request #17971 from chentau/extmark_spell

fix(extmarks): splice extmarks on accepting spell
This commit is contained in:
bfredl
2022-04-08 19:09:48 +02:00
committed by GitHub
2 changed files with 10 additions and 1 deletions

View File

@@ -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;
}