fix scroll-right bug (PTSE)

This commit is contained in:
Kelvin Sherlock 2018-01-29 21:22:08 -05:00
parent 6299c68117
commit 3542ed50ce

View File

@ -321,7 +321,7 @@ void Screen::scrollRight(iRect rect, int n) {
auto xIter = line.begin() + rect.minX();
auto xEnd = line.begin() + rect.maxX();
auto iter = std::copy(xIter, xEnd-n, xEnd);
auto iter = std::copy_backward(xIter, xEnd-n, xEnd);
while (n--) { --iter; *iter = char_info(); }
}