mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-12-30 12:29:43 +00:00
fix scroll-right bug (PTSE)
This commit is contained in:
parent
6299c68117
commit
3542ed50ce
@ -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(); }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user