about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeremy O'Brien <neutral@fastmail.com>2021-01-19 11:52:43 -0500
committerJune McEnroe <june@causal.agency>2021-01-19 12:14:43 -0500
commit1fbc8fe3948a739a2101e0e70af1e0049b8e7837 (patch)
tree445a28d43cc29e22ac5e5b72a1fd2cd050db8cce
parentUse Warm heat for manually inserted blank lines (diff)
downloadcatgirl-1fbc8fe3948a739a2101e0e70af1e0049b8e7837.tar.gz
catgirl-1fbc8fe3948a739a2101e0e70af1e0049b8e7837.zip
Don't lose swapped window when navigating to current buffer
-rw-r--r--ui.c3
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();
&id=6a8749d3bd1570faa3dc07e80efc8fcef5953aa0&follow=1'>Add commitdiff between commit and each of it's parentLars Hjemli 2007-05-13Add graphical diffstat to commit viewLars Hjemli 2007-05-13Add max-commit-count parameter to cgitrcLars Hjemli 2007-05-13Show number of changed lines in log viewLars Hjemli 2007-05-13Simplify ui-diff.c using the new file-level diff interfaceLars Hjemli 2007-05-13Add standard interface for file diff functionsLars Hjemli 2007-05-13Show number of changed files in log viewLars Hjemli 2007-05-13Use standard tree-diff function when showing diffstat for single commitLars Hjemli 2007-05-13Add shared diff-handling functionsLars Hjemli 2007-05-12css: fix bad rendering in Internet ExplorerLars Hjemli 2007-05-11Add links to enable downloading of tagged blobsLars Hjemli 2007-05-11Makefile: add support for building w.o. preinstalled gitLars Hjemli 2007-05-11Tag release v0.3Lars Hjemli 2007-05-11Update README with submodule build infoLars Hjemli 2007-05-11Add submodule links in tree listingLars Hjemli 2007-05-11Add submodules.sh and use it during buildsLars Hjemli 2007-05-11Added git as a submoduleLars Hjemli 2007-05-09Add support for downloading single blobsLars Hjemli 2007-05-08ui-view: show pathname if specified in querystringLars Hjemli 2007-05-08Update to libgit 1.5.2-rc2Lars Hjemli 2007-02-21Layout updateLars Hjemli 2007-02-08Make snapshot feature configurableLars Hjemli 2007-02-08Add support for snapshotsLars Hjemli 2007-02-05cgit v0.2Lars Hjemli 2007-02-05Add support for prefix and gitsrc arguments to 'make'Lars Hjemli 2007-02-04Update cgitrc templateLars Hjemli 2007-02-04Add support for lightweight tagsLars Hjemli 2007-02-04Read repo-info from /etc/cgitrcLars Hjemli 2007-02-04Do not die if tag has no messageLars Hjemli 2007-02-03Fix search for non-virtual urlsLars Hjemli 2007-01-28Update README with install/config informationLars Hjemli