aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 8183e4d8d..772f48e6e 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -254,11 +254,7 @@ void LineVector::Remove(int pos) {
linesData[i] = linesData[i + 1];
}
if (levels) {
- // Level information merges back onto previous line
- int posAbove = pos - 1;
- if (posAbove < 0)
- posAbove = 0;
- for (int j = posAbove; j < lines; j++) {
+ for (int j = pos; j < lines; j++) {
levels[j] = levels[j + 1];
}
}