Skip to content

Commit d58f9c1

Browse files
committed
Save state before window split
1 parent 95185cc commit d58f9c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resize-window.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ should return the fine adjustment (default 1)."
136136
(?r resize-window--reset-windows " Resize - reset window layout (save state)" nil)
137137
(?w resize-window--cycle-window-positive " Resize - cycle window" nil)
138138
(?W resize-window--cycle-window-negative " Resize - cycle window" nil)
139-
(?2 resize-window--split-window-below " Split window horizontally" nil)
140-
(?3 resize-window--split-window-right " Slit window vertically" nil)
139+
(?2 resize-window--split-window-below " Split window horizontally (save state)" nil)
140+
(?3 resize-window--split-window-right " Slit window vertically (save state)" nil)
141141
(?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)
@@ -365,11 +365,13 @@ ACTION is a symbol of value 'kill or 'open."
365365

366366
(defun resize-window--split-window-below ()
367367
"Split the window vertically."
368+
(resize-window--window-push)
368369
(split-window-below)
369370
(resize-window--add-backgrounds))
370371

371372
(defun resize-window--split-window-right ()
372373
"Split the window horizontally."
374+
(resize-window--window-push)
373375
(split-window-right)
374376
(resize-window--add-backgrounds))
375377

0 commit comments

Comments
 (0)