Skip to content
Myr

Fix Travis CI build by ignoring trailing empty lines

Before adoption: this commit came in with the history the project adopted, so no landing records it.

:sob:

authored by Junegunn Choi · committed by Junegunn Choi · parent 3d39ab5 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:test/test_go.rb+1 added-1 removed
38 unmodified lines
3940 def capture41 go("capture-pane -t #{win} \\; save-buffer #{TEMPNAME}")42 raise "Window not found" if $?.exitstatus != 043 File.read(TEMPNAME).split($/)[0, @lines]43 File.read(TEMPNAME).split($/)[0, @lines].reverse.drop_while(&:empty?).reverse44 end4546 def until timeout = 147 wait(timeout) { yield capture }
231 unmodified lines