steelbrain/linter

Replacement position does not change when replacement is applied further left

mfbehrens opened this issue · 0 comments

Hi I think I found a bug.
I am using linter-yalafi which is a linter using yalafi and LanguageTool to check grammar in TeX files. This linter is a lintOnSave-linter since YaLafi is relatively slow.
When you run the linter, and it displays multiple replacements in one line, where the first one is changing the length of the original text, the other replacements are not moved accordingly.

I got some screenshots:

Original situation:
image

Replacing unwerwünschte with unerwünschte
image

Replacing Frequienzen with Frequenzen
image