summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-07-16 06:17:21 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-07-16 06:17:21 +0200
commitd096f918653d5d509cb5be523acb3f47abfc8e6d (patch)
tree56a082897e90b771c50f22d591bd9eacdc25a210 /helm.el
parent1ae230e5fa8dbbdbb4ed49b484f53b5d8c427c0b (diff)
Update marked cands in mode-line when removing/deleting.
* helm-buffers.el (helm-buffers-persistent-kill): Do it. * helm-files.el (helm-ff-quick-delete): Do it. * helm.el (helm--remove-marked-and-update-mode-line): New use it.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/helm.el b/helm.el
index df777b56..029ac6cd 100644
--- a/helm.el
+++ b/helm.el
@@ -5164,6 +5164,13 @@ selection. When key WITH-WILDCARD is specified, expand it."
(helm-log "Marked candidates = %S" candidates)
candidates)))
+(defun helm--remove-marked-and-update-mode-line (elm)
+ (with-helm-buffer
+ (setq helm-marked-candidates
+ (delete (rassoc elm helm-marked-candidates)
+ helm-marked-candidates))
+ (helm-display-mode-line (helm-get-current-source))))
+
(defun helm-current-source-name= (name)
(save-excursion
(goto-char (helm-get-previous-header-pos))