speller: simplify the calculation of the width of the misspelled word
When finding a misspelled word, the length of the match is simply the
length of that word, and its span in columns is simply the number of
columns that it occupies. Compute it thus directly.
Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
Showing
+3 -4
Please register or sign in to comment