diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-07-16 06:17:21 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-07-16 06:17:21 +0200 |
commit | d096f918653d5d509cb5be523acb3f47abfc8e6d (patch) | |
tree | 56a082897e90b771c50f22d591bd9eacdc25a210 /helm.el | |
parent | 1ae230e5fa8dbbdbb4ed49b484f53b5d8c427c0b (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.el | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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)) |