File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def trickle(session_config):
385
385
if "panes" not in window_config :
386
386
window_config ["panes" ] = [{"shell_command" : []}]
387
387
388
- for pane_config in window_config ["panes" ]:
388
+ for pane_idx , pane_config in enumerate ( window_config ["panes" ]) :
389
389
commands_before = []
390
390
391
391
# Prepend shell_command_before to commands
@@ -399,8 +399,7 @@ def trickle(session_config):
399
399
if "shell_command" in pane_config :
400
400
commands_before .extend (pane_config ["shell_command" ])
401
401
402
- p_index = window_config ["panes" ].index (pane_config )
403
- window_config ["panes" ][p_index ]["shell_command" ] = commands_before
402
+ window_config ["panes" ][pane_idx ]["shell_command" ] = commands_before
404
403
# pane_config['shell_command'] = commands_before
405
404
406
405
return session_config
You can’t perform that action at this time.
0 commit comments