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

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

[elpa] master d439b9d 34/78: avy.el (avy--overlay-at-full): Avoid negati


From: Oleh Krehel
Subject: [elpa] master d439b9d 34/78: avy.el (avy--overlay-at-full): Avoid negative length
Date: Sat, 23 Jan 2016 13:59:54 +0000

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

    avy.el (avy--overlay-at-full): Avoid negative length
    
    Fixes #102
---
 avy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/avy.el b/avy.el
index ae9eee2..3fb501e 100644
--- a/avy.el
+++ b/avy.el
@@ -732,7 +732,7 @@ LEAF is normally ((BEG . END) . WND)."
                        (cond ((string= old-str "\n")
                               (concat str "\n"))
                              ((string= old-str "\t")
-                              (concat str (make-string (- tab-width len) ?\ )))
+                              (concat str (make-string (max (- tab-width len) 
0) ?\ )))
                              (t
                               ;; add padding for wide-width character
                               (if (eq (string-width old-str) 2)



reply via email to

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