summaryrefslogtreecommitdiff
path: root/lib/reline/line_editor.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-10-14 23:29:17 +0900
committeraycabta <aycabta@gmail.com>2020-12-05 02:58:58 +0900
commit4af2e4111b0e351464a62c73e4ea0ef8b27c43f5 (patch)
tree9be60f1bc46f855afbada50700188a5e9037e4f1 /lib/reline/line_editor.rb
parente16e481385743666443e162141116b46416cb10d (diff)
[ruby/reline] Deduplicate completed items
https://github.com/ruby/reline/commit/2dabf0c786
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 9bdccae9c9..e5ecc8bbcb 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -565,7 +565,7 @@ class Reline::LineEditor
else
i&.start_with?(target)
end
- }
+ }.uniq
if is_menu
menu(target, list)
return nil