1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert a6e32855d0 partially

Fix TypeError when typing `''.[TAB]`
This commit is contained in:
Kazuhiro NISHIYAMA 2019-08-09 16:29:43 +09:00
parent 3cbd56d574
commit a4a2dd7942
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -824,7 +824,7 @@ class Reline::LineEditor
# skip
i += 2
elsif slice =~ quote_characters_regexp # find new "
quote = $~
quote = $&
closing_quote = /(?!\\)#{Regexp.escape(quote)}/
escaped_quote = /\\#{Regexp.escape(quote)}/
i += 1