diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-06-29 09:04:30 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-06-29 09:04:30 +0200 |
commit | 8bc2f0f5952ce3887a2d1e94cb71fd533fbeb902 (patch) | |
tree | 1acb8d466890bc9b0628bc0e3a482d4f05d23ba6 /helm.el | |
parent | a21bbc76bf395c48e5498d4e39a8de1afbf5abc5 (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.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |