mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-16 02:07:06 +00:00
Fix Travis CI build by ignoring trailing empty lines
😭
This commit is contained in:
parent
3d39ab5ded
commit
4dcc0f10b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user