summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2024-04-15 14:49:50 +0800
committerJSDurand <mmemmew@gmail.com>2024-04-15 14:49:50 +0800
commit9728bb8605265b7f5c32eeb26360543c3bcae72a (patch)
tree9fa5be5cdafaba932aa0c8b32379fa7939aa6c09
parentf5a9a4c85e2d4bc646a868914ad334c5e8af7ea7 (diff)
ibuffer: modify the clear function
* ibuffer.el (durand-ibuffer-clear): Put the cursor at the correct position in the dashboard buffer.
-rw-r--r--ibuffer.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/ibuffer.el b/ibuffer.el
index 4d72bb0..2fdd3dc 100644
--- a/ibuffer.el
+++ b/ibuffer.el
@@ -195,8 +195,8 @@ derived modes of `ibuffer-mode'.")))
(mapcar #'car (ibuffer-current-state-list))))
(let ((current (current-buffer)))
(pop-to-buffer dashboard-buffer-name '((display-buffer-same-window)))
- (goto-char (point-max))
- (recenter -1)
+ (goto-char (point-min))
+ (recenter 0)
(pop-to-buffer current '((display-buffer-same-window)))))
(t
(mapc (function