mirror of
https://github.com/junegunn/fzf
synced 2024-11-14 18:12:53 +00:00
Do not include highlighted item when items chosen
This commit is contained in:
parent
8ae604af67
commit
76c7f4f9c0
12
fzf
12
fzf
@ -10,7 +10,7 @@
|
|||||||
# URL: https://github.com/junegunn/fzf
|
# URL: https://github.com/junegunn/fzf
|
||||||
# Author: Junegunn Choi
|
# Author: Junegunn Choi
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# Last update: November 15, 2013
|
# Last update: November 16, 2013
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 Junegunn Choi
|
# Copyright (c) 2013 Junegunn Choi
|
||||||
#
|
#
|
||||||
@ -677,11 +677,13 @@ class FZF
|
|||||||
ensure
|
ensure
|
||||||
C.close_screen
|
C.close_screen
|
||||||
if got
|
if got
|
||||||
@selects.delete got
|
if @selects.empty?
|
||||||
@selects.each do |sel, _|
|
@stdout.puts got
|
||||||
@stdout.puts sel
|
else
|
||||||
|
@selects.each do |sel, _|
|
||||||
|
@stdout.puts sel
|
||||||
|
end
|
||||||
end
|
end
|
||||||
@stdout.puts got
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user