mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 12:42:01 -07:00
Fix --with-nth option on --multi
This commit is contained in:
10
fzf
10
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
|
||||
|
Reference in New Issue
Block a user