Fix --with-nth option on Ruby 1.8

This commit is contained in:
Junegunn Choi 2014-11-03 23:48:37 +09:00
parent db37e67575
commit ba9365c438

3
fzf
View File

@ -743,7 +743,8 @@ class FZF
def pick def pick
sync do sync do
[*@matches.fetch(@ycur, [])][0] item = @matches[@ycur]
item.is_a?(Array) ? item[0] : item
end end
end end