summaryrefslogtreecommitdiff
path: root/ibuffer.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-06-02 15:58:47 +0800
committerJSDurand <mmemmew@gmail.com>2021-06-02 15:58:47 +0800
commit402d21a5879c8d5eeb4fb25c3ddeb7eeb08dc371 (patch)
tree9ce09724b59385751c8bd2995e89312f35334cb9 /ibuffer.el
parenteef71477ce8484a1faeacb28de1a71ee4365eda7 (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.
Diffstat (limited to 'ibuffer.el')
-rw-r--r--ibuffer.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/ibuffer.el b/ibuffer.el
index a6910d0..93f6ccd 100644
--- a/ibuffer.el
+++ b/ibuffer.el
@@ -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)