diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-10 03:19:03 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-10 03:19:03 -0500 |
| commit | 9712c2e122bd6923298910fcb53b33ca675ddd82 (patch) | |
| tree | 8c31197d5e5ab17d71f654d0107ce4746602ddb0 /modules/prog-python.el | |
| parent | b4f2b1d7d18f9246b06baf1e573b2cd990af83c8 (diff) | |
| download | dotemacs-9712c2e122bd6923298910fcb53b33ca675ddd82.tar.gz dotemacs-9712c2e122bd6923298910fcb53b33ca675ddd82.zip | |
refactor: extract toggle-state helpers shared by F9 and F12
The F12 commit (554b32d) flagged this as a follow-up: ~120 lines of capture-state and display-saved logic were duplicated between modules/ai-vterm.el and modules/eshell-vterm-config.el. The only differences were the default direction (right for F9, below for F12) and the customization name for the fallback size. Extract the shared logic into modules/cj-window-toggle.el so both consumers reduce to thin delegates that pass their state-var symbols and defaults. The state vars stay where they were, so existing tests against each consumer's helpers keep working.
10 new tests cover the parameterized helpers in isolation. All consumer tests still pass.
Diffstat (limited to 'modules/prog-python.el')
0 files changed, 0 insertions, 0 deletions
