diff options
author | aycabta <aycabta@gmail.com> | 2019-12-25 18:45:02 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-12-25 18:45:24 +0900 |
commit | 8a705245e55575d4d310a2e956b89a36a5931971 (patch) | |
tree | e6fafeb8f1ca278c7b94781f377a96d088cc0070 /lib | |
parent | 1002de58ec48afecfde83b542cb934e7c8df0cf0 (diff) | |
download | ruby-8a705245e55575d4d310a2e956b89a36a5931971.tar.gz |
Save last breaking point to complete
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/line_editor.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 10996e4c31..75af50a908 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -919,6 +919,7 @@ class Reline::LineEditor elsif not quote and slice =~ word_break_regexp rest = $' i += 1 + before = @line.byteslice(i, @byte_pointer - i) break_pointer = i else i += 1 |