leoliu pushed a commit to branch master
in repository elpa.

commit 510b8435710e4895ae0ce8e3b03c32c831ce433f
Author: Leo Liu <sdl....@gmail.com>
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