summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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