mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-06 07:02:09 -07:00
Fix Travis CI build by ignoring trailing empty lines
😭
This commit is contained in:
@@ -40,7 +40,7 @@ class Tmux
|
|||||||
def capture
|
def capture
|
||||||
go("capture-pane -t #{win} \\; save-buffer #{TEMPNAME}")
|
go("capture-pane -t #{win} \\; save-buffer #{TEMPNAME}")
|
||||||
raise "Window not found" if $?.exitstatus != 0
|
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
|
end
|
||||||
|
|
||||||
def until timeout = 1
|
def until timeout = 1
|
||||||
|
Reference in New Issue
Block a user