ruby-changes:59487
From: aycabta <ko1@a...>
Date: Wed, 25 Dec 2019 21:13:19 +0900 (JST)
Subject: [ruby-changes:59487] 8a705245e5 (master): Save last breaking point to complete
https://git.ruby-lang.org/ruby.git/commit/?id=8a705245e5 From 8a705245e55575d4d310a2e956b89a36a5931971 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 25 Dec 2019 18:45:02 +0900 Subject: Save last breaking point to complete diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 10996e4..75af50a 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -919,6 +919,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L919 elsif not quote and slice =~ word_break_regexp rest = $' i += 1 + before = @line.byteslice(i, @byte_pointer - i) break_pointer = i else i += 1 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/