File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def split_window(
177
177
self ,
178
178
target : t .Optional [t .Union [int , str ]] = None ,
179
179
start_directory : t .Optional [str ] = None ,
180
- attach : bool = True ,
180
+ attach : bool = False ,
181
181
vertical : bool = True ,
182
182
shell : t .Optional [str ] = None ,
183
183
percent : t .Optional [int ] = None ,
@@ -220,6 +220,10 @@ def split_window(
220
220
By default, this will make the window the pane is created in
221
221
active. To remain on the same window and split the pane in another
222
222
target window, pass in ``attach=False``.
223
+
224
+ .. versionchanged:: 0.28.0
225
+
226
+ ``attach`` default changed from ``True`` to ``False``.
223
227
"""
224
228
tmux_formats = ["#{pane_id}" + FORMAT_SEPARATOR ]
225
229
Original file line number Diff line number Diff line change @@ -40,11 +40,9 @@ def test_pane(
40
40
41
41
__window = __session .attached_window
42
42
__window .split_window ()
43
- __window .split_window ()
43
+ __pane = __window .split_window ()
44
44
__window .select_layout ("main-vertical" )
45
45
46
- __pane = __window .attached_pane
47
-
48
46
assert __pane is not None
49
47
assert __pane .pane_id is not None
50
48
You can’t perform that action at this time.
0 commit comments