From a4a2dd79420d1061ab1615a50b830f567e043d34 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Fri, 9 Aug 2019 16:29:43 +0900 Subject: Revert a6e32855d079e8f3806d8be8a5f5cf7b3a967133 partially Fix TypeError when typing `''.[TAB]` --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 6f4b118da3..4c97a6fed9 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -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 -- cgit v1.2.3