summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-06-29 09:04:30 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-06-29 09:04:30 +0200
commit8bc2f0f5952ce3887a2d1e94cb71fd533fbeb902 (patch)
tree1acb8d466890bc9b0628bc0e3a482d4f05d23ba6 /helm.el
parenta21bbc76bf395c48e5498d4e39a8de1afbf5abc5 (diff)
Ensure to not update when no candidates
when running helm-toggle-truncate-line. * helm.el (helm-toggle-truncate-line): Do it.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helm.el b/helm.el
index 93113de3..1d6978b4 100644
--- a/helm.el
+++ b/helm.el
@@ -6150,7 +6150,8 @@ It may appear after first results popup in helm buffer."))
(with-helm-alive-p
(with-helm-buffer
(setq truncate-lines (not truncate-lines))
- (helm-update (regexp-quote (helm-get-selection nil t))))))
+ (when (helm-get-previous-header-pos)
+ (helm-update (regexp-quote (helm-get-selection nil t)))))))
(put 'helm-toggle-truncate-line 'helm-only t)
(provide 'helm)