summaryrefslogtreecommitdiff
path: root/lisp/view.el
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2019-06-26 00:49:24 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-26 00:49:24 +0200
commit7dcefa7a2bb4d2531d23cbf51eb98ce7727b366c (patch)
treef87ddabc9bec5ec317b4b17782d1033236f4423b /lisp/view.el
parentd7c6836288c91bb639956cb8c748dd6597c55cd4 (diff)
downloademacs-7dcefa7a2bb4d2531d23cbf51eb98ce7727b366c.tar.gz
View-search-... now hit all the matches, regardless of window position
* lisp/view.el (view-search): Jump to the next/prev occurrence of the search, even if it's displayed in the buffer (bug#18131). This seems more logical than the previous (undocumented) behaviour.
Diffstat (limited to 'lisp/view.el')
-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))))