summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/view.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/view.el b/lisp/view.el
index e74ce1e8888..a765be02c1e 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -957,7 +957,7 @@ for highlighting the match that is found."
(t (error "No previous View-mode search")))
(save-excursion
(if end (goto-char (if (< times 0) (point-max) (point-min)))
- (move-to-window-line (if (< times 0) 0 -1)))
+ (forward-line (if (< times 0) -1 1)))
(if (if no (view-search-no-match-lines times regexp)
(re-search-forward regexp nil t times))
(setq where (point))))