branch: master
commit d439b9d44faa08e15a328075d1473d869d79f284
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)