summaryrefslogtreecommitdiff
path: root/lib/reline
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline')
-rw-r--r--lib/reline/config.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/reline/config.rb b/lib/reline/config.rb
index 9689c8f51d..dd81a23ea7 100644
--- a/lib/reline/config.rb
+++ b/lib/reline/config.rb
@@ -292,11 +292,8 @@ class Reline::Config
end
def retrieve_string(str)
- if str =~ /\A"(.*)"\z/
- parse_keyseq($1).map(&:chr).join
- else
- parse_keyseq(str).map(&:chr).join
- end
+ str = $1 if str =~ /\A"(.*)"\z/
+ parse_keyseq(str).map { |c| c.chr(Reline::IOGate.encoding) }.join
end
def bind_key(key, func_name)