summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Buffer.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2018-12-30 11:04:10 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2018-12-30 11:04:10 +0100
commit362f9350868286b066070df7da1f496df08ecd73 (patch)
treed4bf7e564018d835092fff0f311ebcec6740d02d /src/Fl_Text_Buffer.cxx
parent26bb0e5a831be64f21eec41efef73571aebadab5 (diff)
parentde199c327e9b55bd615f7262724da8ecba1999cf (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/Fl_Text_Buffer.cxx')
-rw-r--r--src/Fl_Text_Buffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx
index 6b46dd497..8df527b1b 100644
--- a/src/Fl_Text_Buffer.cxx
+++ b/src/Fl_Text_Buffer.cxx
@@ -1248,7 +1248,7 @@ void Fl_Text_Buffer::remove_(int start, int end)
/* expand the gap to encompass the deleted characters */
mGapEnd += end - mGapStart;
- mGapStart -= mGapStart - start;
+ mGapStart = start;
/* update the length */
mLength -= end - start;