Skip to content

Commit 1f3ed9e

Browse files
committed
fix asserts, #15
1 parent c6631a6 commit 1f3ed9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmuxp/workspacebuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ def iter_create_panes(self, w, wconf):
216216
#target=w.list_panes()[-1].get('pane_index')
217217
)
218218
assert(isinstance(p, Pane))
219-
assert(p.get('pane_index'), pane_base_index)
219+
assert int(p.get('pane_index')) == int(pane_base_index + pindex)
220220
else:
221221
p = w.attached_pane()
222222
assert(isinstance(p, Pane))
223-
assert(p.get('pane_index'), pindex)
223+
assert int(p.get('pane_index')) == int(pane_base_index)
224224

225225
if 'layout' in wconf:
226226
w.select_layout(wconf['layout'])

0 commit comments

Comments
 (0)