Skip to content

Commit

Permalink
avy.el (avy-goto-line-above): Exclude the current line
Browse files Browse the repository at this point in the history
* avy.el (avy-goto-line-below): Exclude the current line

Re #106
  • Loading branch information
abo-abo committed Dec 3, 2015
1 parent 4132dd6 commit a45159a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions avy.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))

Expand All @@ -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))))
Expand Down

0 comments on commit a45159a

Please sign in to comment.