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

Do not include highlighted item when items chosen

This commit is contained in:
Junegunn Choi
2013-11-16 00:31:22 +09:00
parent 8ae604af67
commit 76c7f4f9c0

8
fzf
View File

@@ -10,7 +10,7 @@
# URL: https://github.com/junegunn/fzf
# Author: Junegunn Choi
# License: MIT
# Last update: November 15, 2013
# Last update: November 16, 2013
#
# Copyright (c) 2013 Junegunn Choi
#
@@ -677,11 +677,13 @@ class FZF
ensure
C.close_screen
if got
@selects.delete got
if @selects.empty?
@stdout.puts got
else
@selects.each do |sel, _|
@stdout.puts sel
end
@stdout.puts got
end
end
end
end