mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-14 05:43:04 +00:00
Avoid image-mode and doc-view-mode
* avy-jump.el (avy--regex-candidates): Update. Re #1
This commit is contained in:
parent
6c1f2f6423
commit
1684e6af02
@ -129,6 +129,7 @@ When PRED is non-nil, it's a filter for matching point positions."
|
|||||||
(window-list)
|
(window-list)
|
||||||
(list (selected-window))))
|
(list (selected-window))))
|
||||||
(with-selected-window wnd
|
(with-selected-window wnd
|
||||||
|
(unless (memq major-mode '(image-mode doc-view-mode))
|
||||||
(let ((we (or end (window-end (selected-window) t))))
|
(let ((we (or end (window-end (selected-window) t))))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (or beg (window-start)))
|
(goto-char (or beg (window-start)))
|
||||||
@ -138,7 +139,7 @@ When PRED is non-nil, it's a filter for matching point positions."
|
|||||||
(funcall pred))
|
(funcall pred))
|
||||||
(push (cons (cons (match-beginning 0)
|
(push (cons (cons (match-beginning 0)
|
||||||
(match-end 0))
|
(match-end 0))
|
||||||
wnd) candidates))))))))
|
wnd) candidates)))))))))
|
||||||
(nreverse candidates)))
|
(nreverse candidates)))
|
||||||
|
|
||||||
(defvar avy--overlay-offset 0
|
(defvar avy--overlay-offset 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user