fix: rare crash when user cycles while all windows get closed

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-07-30 20:03:38 +09:00
1 parent 12c27f137f
commit e901ca3c7d
1 file changed
+1
+1
View File
@@ -24,6 +24,7 @@ class Windows {
}
static func windowIndexAfterCycling(_ step: Int) -> Int {
if list.count == 0 { return 0 }
var iterations = 0
var targetIndex = focusedWindowIndex
repeat {