mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Prevent eshell from switching to existing eshell
Prevent duplicate eshell buffers as a result of quitting a second eshell buffer.
This commit is contained in:
@ -24,6 +24,8 @@
|
||||
(defun +eshell--bury-buffer (&optional dedicated-p)
|
||||
(unless (switch-to-prev-buffer nil 'bury)
|
||||
(switch-to-buffer (doom-fallback-buffer)))
|
||||
(when (eq major-mode 'eshell-mode)
|
||||
(switch-to-buffer (doom-fallback-buffer)))
|
||||
(when +eshell-enable-new-shell-on-split
|
||||
(when-let* ((win (get-buffer-window (+eshell/open t))))
|
||||
(set-window-dedicated-p win dedicated-p))))
|
||||
|
Reference in New Issue
Block a user