summaryrefslogtreecommitdiff
path: root/helm-ring.el
diff options
context:
space:
mode:
Diffstat (limited to 'helm-ring.el')
-rw-r--r--helm-ring.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helm-ring.el b/helm-ring.el
index 030839c2..d4c880a9 100644
--- a/helm-ring.el
+++ b/helm-ring.el
@@ -101,7 +101,8 @@ of 80 chars each i.e 80*5."
(with-temp-buffer
(insert candidate)
(goto-char (point-min))
- (if (> (buffer-size) helm-kill-ring-max-offset)
+ (if (and helm-kill-ring-max-offset
+ (> (buffer-size) helm-kill-ring-max-offset))
(let ((end-str "[...]"))
(concat
(buffer-substring