From 402d21a5879c8d5eeb4fb25c3ddeb7eeb08dc371 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Wed, 2 Jun 2021 15:58:47 +0800 Subject: 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. --- ibuffer.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ibuffer.el') 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) -- cgit v1.2.3-18-g5258