[前][次][番号順一覧][スレッド一覧]

ruby-changes:60033

From: aycabta <ko1@a...>
Date: Thu, 13 Feb 2020 15:23:06 +0900 (JST)
Subject: [ruby-changes:60033] 1341a279a4 (ruby_2_7): Save last breaking point to complete

https://git.ruby-lang.org/ruby.git/commit/?id=1341a279a4

From 1341a279a4becd91f35b23eca6d129990eccc8bb 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/

[前][次][番号順一覧][スレッド一覧]