From ba9365c438a9889bbe3b0e3dc35a8961dd9b4e33 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 3 Nov 2014 23:48:37 +0900 Subject: [PATCH] Fix --with-nth option on Ruby 1.8 --- fzf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fzf b/fzf index 2304958..06d6e49 100755 --- a/fzf +++ b/fzf @@ -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