Windows update

This commit is contained in:
Ilya Shurupov 2024-10-22 05:40:45 -07:00 committed by IlyaShurupov
parent fcd5eb2d2a
commit aecc75828b
9 changed files with 64 additions and 51 deletions

View file

@ -109,7 +109,7 @@ void UpdateManager::handleFocusChanges(Widget* root, EventHandler& events) {
int mostCommonIdx = 0;
if (!(path1.empty() || path2.empty())) {
while (path1[mostCommonIdx] == path2[mostCommonIdx] && mostCommonIdx < min(path1.size(), path2.size())) {
while (mostCommonIdx < min(path1.size(), path2.size()) && path1[mostCommonIdx] == path2[mostCommonIdx]) {
mostCommonIdx++;
}
}