From f3fa88ef920c5fdfd5b4fd6cc0b00a38d9d25c53 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 10 Feb 2020 01:09:03 -0500 Subject: Fix M-a so it properly cycles back to where it started --- ui.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 66c695f..d94351a 100644 --- a/ui.c +++ b/ui.c @@ -697,12 +697,10 @@ void uiCloseNum(size_t num) { } static void showAuto(void) { - static bool origin; - if (!origin) { - windows.other = windows.active; - origin = true; + static struct Window *other; + if (windows.other != other) { + other = windows.active; } - struct Window *other = windows.other; for (struct Window *window = windows.head; window; window = window->next) { if (window->heat < Hot) continue; windowShow(window); @@ -716,7 +714,6 @@ static void showAuto(void) { return; } windowShow(windows.other); - origin = false; } static void keyCode(int code) { -- cgit 1.4.1