Fix --with-nth option on Ruby 1.8

This commit is contained in:
Junegunn Choi committed 2014-11-03 23:48:37 +09:00
1 parent db37e67575
commit ba9365c438
1 file changed
+2 -1
+2 -1
View File
@@ -743,7 +743,8 @@ class FZF
def pick
sync do
[*@matches.fetch(@ycur, [])][0]
item = @matches[@ycur]
item.is_a?(Array) ? item[0] : item
end
end