summaryrefslogtreecommitdiff
path: root/helm-ring.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-01-18 13:43:02 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-01-18 13:43:02 +0100
commit77634a283f7efa54abba210cb97bdf72478ae803 (patch)
treeed403c7fb75df4493d6feb81168dcbe5dd331606 /helm-ring.el
parent2451f92fe2d41a916f64b8ba457a6000330037d0 (diff)
Handle nil value for helm-kill-ring-max-offset (#1664).
* helm-ring.el (helm-kill-ring--get-truncated-candidate): Do it.
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