From 3c47b7fa5f8d8a62df3302fcbb17b003274aef08 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 3 Nov 2014 23:58:10 +0900 Subject: [PATCH] Fix --with-nth option on --multi --- fzf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fzf b/fzf index 06d6e495..b0ffcf0d 100755 --- a/fzf +++ b/fzf @@ -253,8 +253,8 @@ class FZF Regexp.compile "(?:.*?#{delim})|(?:.+?$)" end - def burp string - @stdout.puts(string.orig || string) + def burp string, orig = nil + @stdout.puts(orig || string.orig || string) end def start @@ -1050,7 +1050,7 @@ class FZF if @selects.has_key? sel @selects.delete sel else - @selects[sel] = 1 + @selects[sel] = sel.orig end end vselect { |v| v + case o @@ -1132,8 +1132,8 @@ class FZF if selects.empty? burp got else - selects.each do |sel, _| - burp sel + selects.each do |sel, orig| + burp sel, orig end end end