summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-04 08:44:42 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-04 08:44:42 +0200
commitbcb54d7c30c7983f7734617b9948699acd8e1ffd (patch)
treeb4c33e0ebf43520353239bd49bc9cd2207befbbc /helm.el
parentb053d14f405e45430d1c6c43d47572b0e76b362a (diff)
Fix restoring mark at bob
* helm.el (helm-revive-visible-mark): When marked candidate is the first it have also the selection overlay.
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 d7716b4d..1e70dbc3 100644
--- a/helm.el
+++ b/helm.el
@@ -5909,7 +5909,8 @@ sources."
(goto-char (point-min))
(search-forward o-src-str nil t)
(while (and (search-forward o-str nil t)
- (not (overlays-at (point-at-bol 0)))
+ (cl-loop for ov in (overlays-at (point-at-bol 0))
+ never (overlay-get ov 'visible-mark))
(helm-current-source-name= o-src-str))
(setq beg (match-beginning 0)
end (match-end 0))