Conditionally use doom|update-scratch-buffer
This commit is contained in:
parent
d15d22a153
commit
53741dfecc
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ the buffer if it is being displayed in another window."
|
||||||
(doom/previous-real-buffer)
|
(doom/previous-real-buffer)
|
||||||
(when (eq buffer (current-buffer))
|
(when (eq buffer (current-buffer))
|
||||||
(switch-to-buffer doom-buffer t t)
|
(switch-to-buffer doom-buffer t t)
|
||||||
(doom|update-scratch-buffer old-project))
|
(when (featurep 'core-scratch)
|
||||||
|
(doom|update-scratch-buffer old-project)))
|
||||||
(when only-buffer-window-p
|
(when only-buffer-window-p
|
||||||
(kill-buffer buffer))))))
|
(kill-buffer buffer))))))
|
||||||
t)
|
t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue