diff options
| author | Pierre Neidhardt <mail@ambrevar.xyz> | 2020-02-12 10:15:32 +0100 |
|---|---|---|
| committer | Pierre Neidhardt <mail@ambrevar.xyz> | 2020-02-12 10:15:32 +0100 |
| commit | 63b94d6436c2f7ef8018783a10a3579010154022 (patch) | |
| tree | ac0a0c1ba9d036f697e3a7d73109b79c597b037d | |
| parent | 5f77e1cbb517d0df61735e3277002252f53a6182 (diff) | |
Don't switch to last buffer when window is dedicated.externals/windower
| -rw-r--r-- | windower.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/windower.el b/windower.el index 2cec69f..df79d2b 100644 --- a/windower.el +++ b/windower.el @@ -152,7 +152,9 @@ If W2 is a window too, swap both." (defun windower-switch-to-last-buffer () "Switch to last open buffer in current window." (interactive) - (switch-to-buffer (other-buffer (current-buffer) 1))) + (if (window-dedicated-p) + (message "Window is dedicated to its buffer") + (switch-to-buffer (other-buffer (current-buffer) 1)))) ;;; TODO: Store window configurations in a buffer-name-indexed alist? Not ;;; sure that would ever be useful. |
