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

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

[elpa] 61/77: Optimise easy-kill-thing-forward when n is 0


From: Leo Liu
Subject: [elpa] 61/77: Optimise easy-kill-thing-forward when n is 0
Date: Sat, 05 Apr 2014 04:08:25 +0000

leoliu pushed a commit to branch master
in repository elpa.

commit 510b8435710e4895ae0ce8e3b03c32c831ce433f
Author: Leo Liu <address@hidden>
Date:   Mon Oct 28 14:42:45 2013 +0800

    Optimise easy-kill-thing-forward when n is 0
---
 easy-kill.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/easy-kill.el b/easy-kill.el
index a544d8c..ea0aeab 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -255,7 +255,7 @@ candidate property instead."
         (direction (if (minusp n) -1 +1))
         (start (overlay-start easy-kill-candidate))
         (end (overlay-end easy-kill-candidate)))
-    (when thing
+    (when (and thing (/= n 0))
       (let ((new-end (save-excursion
                        (goto-char end)
                        (with-demoted-errors



reply via email to

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