diff options
| author | Matthias Melcher <git@matthiasm.com> | 2018-12-27 13:05:35 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2018-12-27 13:05:35 +0100 |
| commit | 75eefbcd42e7117de110f1d77e892912a24fc0a4 (patch) | |
| tree | 65063dcd8a49a0c61fa1995acc3f91f9aaf902af /src/Fl_Text_Buffer.cxx | |
| parent | 5c7118f8d9a4a89742c33d411e5f207b9108b32e (diff) | |
Fixing some minor lint, found by Pavel Shlyak using PVS studio
Diffstat (limited to 'src/Fl_Text_Buffer.cxx')
| -rw-r--r-- | src/Fl_Text_Buffer.cxx | 2 |
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; |
