Skip to content
Snippets Groups Projects
Commit 4dcc0f10 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix Travis CI build by ignoring trailing empty lines

:sob:
parent 3d39ab5d
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class Tmux
def capture
go("capture-pane -t #{win} \\; save-buffer #{TEMPNAME}")
raise "Window not found" if $?.exitstatus != 0
File.read(TEMPNAME).split($/)[0, @lines]
File.read(TEMPNAME).split($/)[0, @lines].reverse.drop_while(&:empty?).reverse
end
def until timeout = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment