summaryrefslogtreecommitdiff
path: root/helm-ring.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-01-18 17:28:34 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-01-18 17:28:34 +0100
commit4bc72b16d0b3871b8ef15fb641fb84199f049af0 (patch)
tree4c0984a6f2c29ac894afbde7bca0c8e285a447d2 /helm-ring.el
parent91fe51a0fd2f9f81313b327ad20721939602da98 (diff)
Add comment no code change.
Diffstat (limited to 'helm-ring.el')
-rw-r--r--helm-ring.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/helm-ring.el b/helm-ring.el
index 520dadb4..e8dbd9cc 100644
--- a/helm-ring.el
+++ b/helm-ring.el
@@ -132,6 +132,8 @@ of 80 chars each i.e 80*5."
(defun helm-kill-ring--preselect-fn (candidate)
"Internal, used to preselect CANDIDATE when toggling truncated view."
+ ;; Preselection by regexp may not work if candidate is huge, so walk
+ ;; the helm buffer until selection is on CANDIDATE.
(helm-awhile (condition-case-unless-debug nil
(and (not (helm-pos-header-line-p))
(helm-get-selection))