From bd6233518b5715d749d96ad2c6a89c24dc5e3111 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 13 Mar 2019 20:14:48 -0400 Subject: [PATCH] Fix doom|run-switch-window-hooks Using the wrong variable. --- core/core-ui.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index f8df58b1b..a112c6030 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -86,10 +86,10 @@ behavior). Do not set this directly, this is let-bound in `doom|init-theme'.") (defvar doom--last-frame nil) (defun doom|run-switch-window-hooks () - (unless (or doom-inhibit-switch-buffer-hooks + (unless (or doom-inhibit-switch-window-hooks (eq doom--last-window (selected-window)) (minibufferp)) - (let ((doom-inhibit-switch-buffer-hooks t)) + (let ((doom-inhibit-switch-window-hooks t)) (run-hooks 'doom-switch-window-hook) (doom-log "Window switched to %s" (selected-window)) (setq doom--last-window (selected-window)))))