m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Fix --with-nth option on --multi

This commit is contained in:
Junegunn Choi
2014-11-03 23:58:10 +09:00
parent ba9365c438
commit 3c47b7fa5f

10
fzf
View File

@@ -253,8 +253,8 @@ class FZF
Regexp.compile "(?:.*?#{delim})|(?:.+?$)" Regexp.compile "(?:.*?#{delim})|(?:.+?$)"
end end
def burp string def burp string, orig = nil
@stdout.puts(string.orig || string) @stdout.puts(orig || string.orig || string)
end end
def start def start
@@ -1050,7 +1050,7 @@ class FZF
if @selects.has_key? sel if @selects.has_key? sel
@selects.delete sel @selects.delete sel
else else
@selects[sel] = 1 @selects[sel] = sel.orig
end end
end end
vselect { |v| v + case o vselect { |v| v + case o
@@ -1132,8 +1132,8 @@ class FZF
if selects.empty? if selects.empty?
burp got burp got
else else
selects.each do |sel, _| selects.each do |sel, orig|
burp sel burp sel, orig
end end
end end
end end