diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-11 12:21:10 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-11 12:21:10 -0500 |
| commit | c4b5fefa6712649c637a286886bd18ac412eba8d (patch) | |
| tree | ea7f4f2297cdb27ff564e823bba864f774624ad0 /modules/test-runner.el | |
| parent | a21ba82e6a5375b6cf1afca640f64b9841fca246 (diff) | |
| download | dotemacs-c4b5fefa6712649c637a286886bd18ac412eba8d.tar.gz dotemacs-c4b5fefa6712649c637a286886bd18ac412eba8d.zip | |
fix(undead-buffers): guard kill-other-window against a lone window
In a single-window frame cj/kill-other-window killed the buffer being viewed: other-window no-ops, delete-window was guarded, but the kill still ran on the current buffer. Signal a user-error instead, matching the sibling cj/kill-other-window-buffer. Past the guard there's always another window, so delete-window drops its own check.
The single-window test asserted the broken behavior, so I rewrote it to expect the user-error and an untouched buffer.
Also documented the prefix-argument undead-mark in cj/kill-buffer-or-bury-alive.
Diffstat (limited to 'modules/test-runner.el')
0 files changed, 0 insertions, 0 deletions
