From 53decea669cd39b7f4886a2e1b8eb9f821a3d61a Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 21 Aug 2015 18:17:53 +0200 Subject: [PATCH] avy.el (avy--line): Don't error on end of buffer Re #91 --- avy.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))))