diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-01-18 13:43:02 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-01-18 13:43:02 +0100 |
commit | 77634a283f7efa54abba210cb97bdf72478ae803 (patch) | |
tree | ed403c7fb75df4493d6feb81168dcbe5dd331606 /helm-ring.el | |
parent | 2451f92fe2d41a916f64b8ba457a6000330037d0 (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.el | 3 |
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 |