Skip to content

Commit 5263366

Browse files
committed
Save split window targetting for later
1 parent a6fa51b commit 5263366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmuxp/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def split_window(self, target=None, attach=True):
328328
if target:
329329
tmux_args += ('-t%s' % target,)
330330
else:
331-
tmux_args += ('-t%s' % self.panes[-1].get('pane_index'),)
331+
tmux_args += ('-t%s' % self.panes[0].get('pane_id'),)
332332

333333
tmux_args += (
334334
'-P', '-F%s' % ''.join(tmux_formats) # output

0 commit comments

Comments
 (0)