diff options
author | Jeremy O'Brien <neutral@fastmail.com> | 2021-01-19 11:52:43 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-19 12:14:43 -0500 |
commit | 1fbc8fe3948a739a2101e0e70af1e0049b8e7837 (patch) | |
tree | 445a28d43cc29e22ac5e5b72a1fd2cd050db8cce | |
parent | Use Warm heat for manually inserted blank lines (diff) | |
download | catgirl-1fbc8fe3948a739a2101e0e70af1e0049b8e7837.tar.gz catgirl-1fbc8fe3948a739a2101e0e70af1e0049b8e7837.zip |
Don't lose swapped window when navigating to current buffer
-rw-r--r-- | ui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui.c b/ui.c index 097d3d8..090a247 100644 --- a/ui.c +++ b/ui.c @@ -733,9 +733,10 @@ static void inputUpdate(void) { } static void windowShow(uint num) { + windows.user = num; + if (windows.show == num) return; windows.swap = windows.show; windows.show = num; - windows.user = num; mark(windows.ptrs[windows.swap]); unmark(windows.ptrs[windows.show]); windowUpdate(); |