diff options
| author | C. McEnroe | 2020-02-10 01:09:03 -0500 | 
|---|---|---|
| committer | C. McEnroe | 2020-02-10 01:09:03 -0500 | 
| commit | f3fa88ef920c5fdfd5b4fd6cc0b00a38d9d25c53 (patch) | |
| tree | 0a61d833b296ccb0424f9a5c2fdd36ee1bc6c091 | |
| parent | 7470a705b3b0c577f7531bbbfa28ab2156678c94 (diff) | |
Fix M-a so it properly cycles back to where it started
| -rw-r--r-- | ui.c | 9 | 
1 files changed, 3 insertions, 6 deletions
@@ -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) {  | 
