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