diff options
author | JSDurand <mmemmew@gmail.com> | 2021-06-02 15:58:47 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-06-02 15:58:47 +0800 |
commit | 402d21a5879c8d5eeb4fb25c3ddeb7eeb08dc371 (patch) | |
tree | 9ce09724b59385751c8bd2995e89312f35334cb9 | |
parent | eef71477ce8484a1faeacb28de1a71ee4365eda7 (diff) |
ibuffer: Fix a bug in deleting buffers.
* ibuffer.el (durand-ibuffer-clear): I would like to delete those
buffers that are not marked, but I wrote the opposite behaviour.
This commit fixes the bug.
-rw-r--r-- | ibuffer.el | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -98,15 +98,14 @@ derived modes of ibuffer-mode."))) (mapc (function (lambda (buffer-and-mark) (cond - ((or (/= (cdr buffer-and-mark) + ((or (= (cdr buffer-and-mark) ibuffer-marked-char) (string= (buffer-name (car buffer-and-mark)) dashboard-buffer-name))) ((kill-buffer (car buffer-and-mark)))))) (cons (cons (current-buffer) 32) - (ibuffer-current-state-list))) - (ibuffer-update nil)))) + (ibuffer-current-state-list)))))) (define-key global-map (vector 24 2) #'ibuffer) (define-key global-map (vector ?\s-h) #'ibuffer) |