Skip to content

Commit dae71f1

Browse files
committed
delete trailing empty lines in pane-capture to make tmux 1.8 happy
1 parent 4c4759d commit dae71f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_workspacebuilder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ def assert_last_line(p, s):
274274
correct = False
275275
for _ in range(10):
276276
pane_out = p.cmd('capture-pane', '-p', '-J').stdout
277+
# delete trailing empty lines for tmux 1.8...
278+
while not pane_out[-1].strip(): pane_out.pop()
277279
if len(pane_out) > 1 and pane_out[-2].strip() == s:
278280
correct = True
279281
break

0 commit comments

Comments
 (0)