diff options
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/flyspell.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index ee94ff01d64..253485fc87f 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -1356,7 +1356,14 @@ The buffer to mark them in is `flyspell-large-region-buffer'." | |||
| 1356 | (progn | 1356 | (progn |
| 1357 | (setq flyspell-large-region-beg (point)) | 1357 | (setq flyspell-large-region-beg (point)) |
| 1358 | (goto-char (- (point) 1)) | 1358 | (goto-char (- (point) 1)) |
| 1359 | (setq keep (flyspell-word))) | 1359 | (setq keep |
| 1360 | ;; Detect when WORD can't be checked properly | ||
| 1361 | ;; because flyspell-get-word finds | ||
| 1362 | ;; just part of it, and treat that as ok. | ||
| 1363 | (if (< (length (flyspell-get-word following)) | ||
| 1364 | (length word)) | ||
| 1365 | nil | ||
| 1366 | (flyspell-word)))) | ||
| 1360 | (error "Bug: misspelled word `%s' (output pos %d) not found in buffer" | 1367 | (error "Bug: misspelled word `%s' (output pos %d) not found in buffer" |
| 1361 | word wordpos))))))) | 1368 | word wordpos))))))) |
| 1362 | ;; we are done | 1369 | ;; we are done |