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:
10
fzf
10
fzf
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user