diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-24 01:02:54 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-24 01:02:54 -0500 |
| commit | 7e5aa31731a6d6446055729fb7597d549ff637f4 (patch) | |
| tree | 4a3deb3a97d8ecbe3023e7e84d6e8151937ebfc6 /tests | |
| parent | 32017dc068d7579e789c5e753ae35f6f10c3d5b3 (diff) | |
| download | dotemacs-7e5aa31731a6d6446055729fb7597d549ff637f4.tar.gz dotemacs-7e5aa31731a6d6446055729fb7597d549ff637f4.zip | |
fix(auto-dim): stop the minibuffer from re-dimming the window you left
- Opening the minibuffer dimmed whatever window you had just left.
- Dimming follows selection, and the minibuffer takes selection.
- auto-dim-other-buffers-dim-on-switch-to-minibuffer sat at its package default of t.
- Set it to nil, so minibuffer entry leaves the dim state alone.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-auto-dim-config.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test-auto-dim-config.el b/tests/test-auto-dim-config.el index 12435fa0..dcab7eff 100644 --- a/tests/test-auto-dim-config.el +++ b/tests/test-auto-dim-config.el @@ -30,7 +30,12 @@ (progn (should (bound-and-true-p auto-dim-other-buffers-mode)) (should (null auto-dim-other-buffers-dim-on-focus-out)) - (should (eq t auto-dim-other-buffers-dim-on-switch-to-minibuffer)) + ;; Entering the minibuffer must not change what is dimmed: a dim window + ;; stays dim, a lit one stays lit. The fork's `adob--update' returns + ;; early when this is nil and the selected window is the minibuffer, so + ;; nil is what keeps a minibuffer prompt from re-dimming the window the + ;; user was just in. + (should (null auto-dim-other-buffers-dim-on-switch-to-minibuffer)) (should-not (assq 'fringe auto-dim-other-buffers-affected-faces))) (when (fboundp 'auto-dim-other-buffers-mode) (auto-dim-other-buffers-mode -1)))) |
