Skip to content

Commit 95185cc

Browse files
committed
Save state before window delete
1 parent a2387ff commit 95185cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resize-window.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ should return the fine adjustment (default 1)."
138138
(?W resize-window--cycle-window-negative " Resize - cycle window" nil)
139139
(?2 resize-window--split-window-below " Split window horizontally" nil)
140140
(?3 resize-window--split-window-right " Slit window vertically" nil)
141-
(?0 resize-window--delete-window " Delete window" nil)
141+
(?0 resize-window--delete-window " Delete window (save state)" nil)
142142
(?k resize-window--kill-other-windows " Kill other windows (save state)" nil)
143143
(?y resize-window--restore-windows " (when state) Restore window configuration" nil)
144144
(?? resize-window--display-menu " Resize - toggle help menu" nil))
@@ -376,6 +376,7 @@ ACTION is a symbol of value 'kill or 'open."
376376
(defun resize-window--delete-window ()
377377
"Delete the current window."
378378
(unless (eq (get-buffer-window) (window-main-window))
379+
(resize-window--window-push)
379380
(delete-window)
380381
(resize-window--add-backgrounds)))
381382

0 commit comments

Comments
 (0)