aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/textmodes/flyspell.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 185f2e8dea3..a509fdf7f6c 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1961,12 +1961,8 @@ Sets `flyspell-auto-correct-previous-pos' to nil"
1961But don't look beyond what's visible on the screen." 1961But don't look beyond what's visible on the screen."
1962 (interactive "d") 1962 (interactive "d")
1963 1963
1964 (let (top bot) 1964 (let ((top (window-start))
1965 (save-excursion 1965 (bot (window-end)))
1966 (move-to-window-line 0)
1967 (setq top (point))
1968 (move-to-window-line -1)
1969 (setq bot (point)))
1970 (save-excursion 1966 (save-excursion
1971 (save-restriction 1967 (save-restriction
1972 (narrow-to-region top bot) 1968 (narrow-to-region top bot)