diff options
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/flyspell.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index d87cb5e72ed..e4626696262 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -1944,6 +1944,10 @@ spell-check." | |||
| 1944 | (call-interactively flyspell--prev-meta-tab-binding) | 1944 | (call-interactively flyspell--prev-meta-tab-binding) |
| 1945 | (let ((pos (point)) | 1945 | (let ((pos (point)) |
| 1946 | (old-max (point-max))) | 1946 | (old-max (point-max))) |
| 1947 | ;; Flush a possibly stale cache from previous invocations of | ||
| 1948 | ;; flyspell-auto-correct-word. | ||
| 1949 | (if (not (eq last-command 'flyspell-auto-correct-word)) | ||
| 1950 | (setq flyspell-auto-correct-region nil)) | ||
| 1947 | ;; Use the correct dictionary. | 1951 | ;; Use the correct dictionary. |
| 1948 | (flyspell-accept-buffer-local-defs) | 1952 | (flyspell-accept-buffer-local-defs) |
| 1949 | (if (and (eq flyspell-auto-correct-pos pos) | 1953 | (if (and (eq flyspell-auto-correct-pos pos) |