aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-12-25 18:45:02 +0900
committerNARUSE, Yui <naruse@airemix.jp>2019-12-25 18:50:58 +0900
commit1341a279a4becd91f35b23eca6d129990eccc8bb (patch)
treea7fe69d59e37c004ad6b166ca04e7ceed08210d4
parenta52e364e6541a6e234718ac63aa7eb5c3f2c832f (diff)
downloadruby-1341a279a4becd91f35b23eca6d129990eccc8bb.tar.gz
Save last breaking point to complete
-rw-r--r--lib/reline/line_editor.rb1
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