mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +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
6
avy.el
6
avy.el
@ -1066,7 +1066,8 @@ Otherwise, forward to `goto-line' with ARG."
|
|||||||
(defun avy-goto-line-above ()
|
(defun avy-goto-line-above ()
|
||||||
"Goto visible line above the cursor."
|
"Goto visible line above the cursor."
|
||||||
(interactive)
|
(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)
|
(unless (eq r t)
|
||||||
(avy-action-goto r))))
|
(avy-action-goto r))))
|
||||||
|
|
||||||
@ -1074,7 +1075,8 @@ Otherwise, forward to `goto-line' with ARG."
|
|||||||
(defun avy-goto-line-below ()
|
(defun avy-goto-line-below ()
|
||||||
"Goto visible line below the cursor."
|
"Goto visible line below the cursor."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((r (avy--line
|
(let* ((avy-all-windows nil)
|
||||||
|
(r (avy--line
|
||||||
nil (point)
|
nil (point)
|
||||||
(window-end (selected-window) t))))
|
(window-end (selected-window) t))))
|
||||||
(unless (eq r t)
|
(unless (eq r t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user