@@ -94,9 +94,9 @@ def test_focus_pane_index(session: Session) -> None:
94
94
95
95
assert session .active_window .name == "focused window"
96
96
97
- _pane_base_index = session .active_window .show_window_option (
97
+ _pane_base_index = session .active_window ._show_option (
98
98
"pane-base-index" ,
99
- g = True ,
99
+ _global = True ,
100
100
)
101
101
assert isinstance (_pane_base_index , int )
102
102
pane_base_index = int (_pane_base_index )
@@ -279,7 +279,7 @@ def test_global_session_env_options(
279
279
assert isinstance (_visual_silence , bool )
280
280
assert _visual_silence is True
281
281
assert repeat_time == session ._show_option ("repeat-time" )
282
- assert main_pane_height == session .active_window .show_window_option (
282
+ assert main_pane_height == session .active_window ._show_option (
283
283
"main-pane-height" ,
284
284
)
285
285
@@ -306,9 +306,9 @@ def test_window_options(
306
306
p = p
307
307
assert len (session .windows ) == window_count
308
308
assert isinstance (w , Window )
309
- assert w .show_window_option ("main-pane-height" ) == 5
309
+ assert w ._show_option ("main-pane-height" ) == 5
310
310
if has_gte_version ("2.3" ):
311
- assert w .show_window_option ("pane-border-format" ) == " #P "
311
+ assert w ._show_option ("pane-border-format" ) == " #P "
312
312
313
313
assert len (session .windows ) == window_count
314
314
window_count += 1
@@ -513,7 +513,7 @@ def check_window_name_mismatch() -> bool:
513
513
assert retry_until (check_window_name_mismatch , 5 , interval = 0.25 )
514
514
515
515
def check_window_name_match () -> bool :
516
- assert w .show_window_option ("automatic-rename" )
516
+ assert w ._show_option ("automatic-rename" )
517
517
return w .name in {
518
518
pathlib .Path (os .getenv ("SHELL" , "bash" )).name ,
519
519
portable_command ,
@@ -714,8 +714,10 @@ def test_pane_order(session: Session) -> None:
714
714
window_count += 1
715
715
716
716
for w in session .windows :
717
- pane_base_index = w .show_window_option ("pane-base-index" , g = True )
717
+ pane_base_index = w ._show_option ("pane-base-index" , _global = True )
718
+ assert isinstance (pane_base_index , int )
718
719
for p_index , p in enumerate (w .panes , start = pane_base_index ):
720
+ assert p .index is not None
719
721
assert int (p_index ) == int (p .index )
720
722
721
723
# pane-base-index start at base-index, pane_paths always start
0 commit comments