emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 53decea 24/78: avy.el (avy--line): Don't error on end of b


From: Oleh Krehel
Subject: [elpa] master 53decea 24/78: avy.el (avy--line): Don't error on end of buffer
Date: Sat, 23 Jan 2016 13:59:48 +0000

branch: master
commit 53decea669cd39b7f4886a2e1b8eb9f821a3d61a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]