mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
parent
e9d2e60965
commit
974e55b792
23
avy-jump.el
23
avy-jump.el
@ -339,17 +339,18 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
|
|||||||
(window-list)
|
(window-list)
|
||||||
(list (selected-window))))
|
(list (selected-window))))
|
||||||
(with-selected-window wnd
|
(with-selected-window wnd
|
||||||
(let ((ws (window-start)))
|
(unless (memq major-mode '(image-mode doc-view-mode))
|
||||||
(save-excursion
|
(let ((ws (window-start)))
|
||||||
(save-restriction
|
(save-excursion
|
||||||
(narrow-to-region ws (window-end (selected-window) t))
|
(save-restriction
|
||||||
(goto-char (point-min))
|
(narrow-to-region ws (window-end (selected-window) t))
|
||||||
(while (< (point) (point-max))
|
(goto-char (point-min))
|
||||||
(unless (get-char-property
|
(while (< (point) (point-max))
|
||||||
(max (1- (point)) ws) 'invisible)
|
(unless (get-char-property
|
||||||
(push (cons (point) (selected-window))
|
(max (1- (point)) ws) 'invisible)
|
||||||
candidates))
|
(push (cons (point) (selected-window))
|
||||||
(forward-line 1)))))))
|
candidates))
|
||||||
|
(forward-line 1))))))))
|
||||||
(avy--process (nreverse candidates) #'avy--overlay-pre)))
|
(avy--process (nreverse candidates) #'avy--overlay-pre)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user