* lisp/view.el (view-search): Go to beginning-of-line or end-of-line
instead of previous or next line before the search. (Bug#76167)
(cherry picked from commit
e35435daf392462440bbc51a5b82d93eea7757c6)
(t (error "No previous View-mode search")))
(save-excursion
(if end (goto-char (if (< times 0) (point-max) (point-min)))
- (forward-line (if (< times 0) -1 1)))
+ (if (< times 0)
+ (beginning-of-line)
+ (end-of-line)))
(if (if no (view-search-no-match-lines times regexp)
(re-search-forward regexp nil t times))
(setq where (point))))