We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9d4d6c commit 00358bdCopy full SHA for 00358bd
main.rb
@@ -10,7 +10,12 @@
10
Readline.completer_quote_characters = "\"'"
11
12
Readline.completion_proc = proc do |input|
13
- CHARACTER_NAMES.select { |name| name.start_with?(input) }
+ options = CHARACTER_NAMES
14
+ if Readline.completion_quote_character.nil?
15
+ options = options.map { |o| o.gsub(" ", "\\ ") }
16
+ end
17
+
18
+ options.select { |name| name.start_with?(input) }
19
end
20
21
puts "Who's your favourite Hitchiker's Guide character?"
0 commit comments