branch: master
commit 53decea669cd39b7f4886a2e1b8eb9f821a3d61a
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
avy.el (avy--line): Don't error on end of buffer
Re #91
---
avy.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/avy.el b/avy.el
index f76b86f..44cecbc 100644
--- a/avy.el
+++ b/avy.el
@@ -932,7 +932,8 @@ The window scope is determined by `avy-all-windows' (ARG
negates it)."
(point))
(selected-window)) candidates))
(if visual-line-mode
- (line-move 1)
+ (ignore-errors
+ (line-move 1))
(forward-line 1)))))))
(setq avy-action #'identity)
(avy--process (nreverse candidates) (avy--style-fn avy-style))))