scrolling: SCollumnData::up/down Break out of the loop after the first swap (#457)

This commit is contained in:
James Satterfield 2025-08-27 11:25:38 -05:00 committed by GitHub
parent c1ddebb423
commit ee66b49fda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,7 @@ void SColumnData::up(SP<SScrollingWindowData> w) {
continue;
std::swap(windowDatas[i], windowDatas[i - 1]);
break;
}
}
@ -108,6 +109,7 @@ void SColumnData::down(SP<SScrollingWindowData> w) {
continue;
std::swap(windowDatas[i], windowDatas[i + 1]);
break;
}
}