diff options
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/flyspell.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 612f83123ba..ee7a52a1093 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -1155,10 +1155,15 @@ than preceding) word when the cursor is not over a word." | |||
| 1155 | nil) | 1155 | nil) |
| 1156 | (t | 1156 | (t |
| 1157 | (setq flyspell-word-cache-result nil) | 1157 | (setq flyspell-word-cache-result nil) |
| 1158 | ;; incorrect highlight the location | 1158 | ;; Highlight the location as incorrect, |
| 1159 | ;; including offset specified in POSS. | ||
| 1159 | (if flyspell-highlight-flag | 1160 | (if flyspell-highlight-flag |
| 1160 | (flyspell-highlight-incorrect-region | 1161 | (flyspell-highlight-incorrect-region |
| 1161 | start end poss) | 1162 | (if (and (consp poss) |
| 1163 | (integerp (nth 1 poss))) | ||
| 1164 | (+ start (nth 1 poss) -1) | ||
| 1165 | start) | ||
| 1166 | end poss) | ||
| 1162 | (flyspell-notify-misspell word poss)) | 1167 | (flyspell-notify-misspell word poss)) |
| 1163 | nil)))) | 1168 | nil)))) |
| 1164 | ;; return to original location | 1169 | ;; return to original location |