AtomLinter / linter-spell-latex

Provider for Atom linter-spell package to enable LaTeX spell checking.
MIT License
8 stars 7 forks source link

Fix failing when line changes #35

Open beyerja opened 5 years ago

beyerja commented 5 years ago

(With linter-spell-latex 0.11.0 in Atom 1.31.1 x63 in Ubuntu 18.04.)

Hi,

I find this package really helpful but it seems to have a bug: After a spell check is done it underlines words recognized as wrong and when hovering over them with the cursor it shows suggestions. By clicking 'Fix' these can be applied. However, this does not work correctly when 'Fix' is used after the document was changed in any way. Apparently the way it works is it remembers the exact position of the word that needs to be corrected - but only at the point of the last spell check! So when a document is changed after the last spell check and the 'Fix' functionality is used the new word replaces whatever there is now at the old position of the word that should be fixed.

Thanks for your work!