mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
avy.el (avy-goto-line-above): Work in a single window
* avy.el (avy-goto-line-above): (avy-goto-line-below): Bind `avy-all-windows' to nil. Re #106
This commit is contained in:
parent
a0414291f1
commit
4132dd647e
10
avy.el
10
avy.el
@ -1066,7 +1066,8 @@ Otherwise, forward to `goto-line' with ARG."
|
||||
(defun avy-goto-line-above ()
|
||||
"Goto visible line above the cursor."
|
||||
(interactive)
|
||||
(let ((r (avy--line nil (window-start) (point))))
|
||||
(let* ((avy-all-windows nil)
|
||||
(r (avy--line nil (window-start) (point))))
|
||||
(unless (eq r t)
|
||||
(avy-action-goto r))))
|
||||
|
||||
@ -1074,9 +1075,10 @@ Otherwise, forward to `goto-line' with ARG."
|
||||
(defun avy-goto-line-below ()
|
||||
"Goto visible line below the cursor."
|
||||
(interactive)
|
||||
(let ((r (avy--line
|
||||
nil (point)
|
||||
(window-end (selected-window) t))))
|
||||
(let* ((avy-all-windows nil)
|
||||
(r (avy--line
|
||||
nil (point)
|
||||
(window-end (selected-window) t))))
|
||||
(unless (eq r t)
|
||||
(avy-action-goto r))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user