summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Buffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Text_Buffer.cxx')
-rw-r--r--src/Fl_Text_Buffer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx
index 93f60276e..7495be19a 100644
--- a/src/Fl_Text_Buffer.cxx
+++ b/src/Fl_Text_Buffer.cxx
@@ -1540,6 +1540,7 @@ void Fl_Text_Buffer::remove_rectangular_( int start, int end, int rectStart,
the text between rectStart and rectEnd and padding appropriately */
lineStart = start;
outPtr = outStr;
+ endOffset = 0;
while ( lineStart <= mLength && lineStart <= end ) {
lineEnd = line_end( lineStart );
line = text_range( lineStart, lineEnd );