aboutsummaryrefslogtreecommitdiff
path: root/Readme.md
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-03-02 17:21:34 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2023-03-02 17:21:34 +0100
commit870fe9f83d2105dc5025f0b2895112c1d5466f13 (patch)
treedf4b810fd722aeef12c65e5a28276b7cce974b6b /Readme.md
parent40f20dfde4a5702b0b02b2d89ad746a93d851c27 (diff)
downloadvis-spellcheck-870fe9f83d2105dc5025f0b2895112c1d5466f13.tar.gz
vis-spellcheck-870fe9f83d2105dc5025f0b2895112c1d5466f13.zip
fix typo detection at file start
If a file starts with a typo our pattern [%A]typo[%A] can not find it. However if the same typo appears a second type in the text our pattern happily finds the second occurence skipping the first and all typos in between. In the text typo1 Correct text typo2 ... typo1 our pattern will match the second occurence of 'typo1' skipping 'typo2'. Since we update our search index 'typo2' will never be found and vis-spellcheck will show the user an information prompt. Fix this behaviour by adding a special case for the first typo which may start the text.
Diffstat (limited to 'Readme.md')
0 files changed, 0 insertions, 0 deletions