Commit 2c1ec710 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Kurt Hindenburg
Browse files

fix moving overlapping lines

parent e45cda95
......@@ -1010,7 +1010,7 @@ void Screen::moveImage(int dest, int sourceBegin, int sourceEnd)
const int srcY = sourceBegin / _columns;
if (dest < sourceBegin) {
for (int i = 0; i <= lines; i++) {
_screenLines[destY + i] = std::move(_screenLines[srcY + i]);
_screenLines[destY + i] = _screenLines[srcY + i];
_lineProperties[destY + i] = _lineProperties[srcY + i];
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment