summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-12 21:38:25 -0400
committerJune McEnroe <june@causal.agency>2018-08-12 21:38:25 -0400
commita09df5f69729dcdddf413f3a47e3c0c9d7b239eb (patch)
treee046278ccb40253d42ed6358318421bfcbdf3da8
parentDisable focus tracking in uiHide (diff)
downloadcatgirl-a09df5f69729dcdddf413f3a47e3c0c9d7b239eb.tar.gz
catgirl-a09df5f69729dcdddf413f3a47e3c0c9d7b239eb.zip
Avoid setting mark if switching to the same view
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 9f198c4..559f7b7 100644
--- a/ui.c
+++ b/ui.c
@@ -210,8 +210,8 @@ static void uiRedraw(void) {
 static void uiView(struct View *view) {
 	if (view->topic) touchwin(view->topic);
 	touchwin(view->log);
-	view->mark = false;
 	ui.view->mark = true;
+	view->mark = false;
 	ui.view = view;
 }
 
git-pink/commit/ui-ssdiff.c?id=5bd7e9bc1b6749bbb5220d6c3a990469a7b839ae&follow=1'>ui-ssdiff: resolve HTML5 validation errorsChris Mayo 2019-01-03filters: migrate from luacrypto to luaosslJason A. Donenfeld 2019-01-02ui-shared: fix broken sizeof in title setting and rewriteJason A. Donenfeld 2018-12-09git: update to v2.20.0Christian Hesse 2018-11-25ui-blame: set repo for sbJason A. Donenfeld 2018-11-25auth-filter: pass url with query string attachedJason A. Donenfeld 2018-11-21git: use xz compressed archive for downloadChristian Hesse 2018-10-12git: update to v2.19.1Christian Hesse 2018-09-11ui-ssdiff: ban strcat()Christian Hesse 2018-09-11ui-ssdiff: ban strncpy()Christian Hesse 2018-09-11ui-shared: ban strcat()Christian Hesse 2018-09-11ui-patch: ban sprintf()Christian Hesse 2018-09-11ui-log: ban strncpy()Christian Hesse 2018-09-11ui-log: ban strcpy()Christian Hesse 2018-09-11parsing: ban sprintf()Christian Hesse 2018-09-11parsing: ban strncpy()Christian Hesse 2018-08-28filters: generate anchor links from markdownChristian Hesse 2018-08-03Bump version.Jason A. Donenfeld 2018-08-03clone: fix directory traversalJason A. Donenfeld 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev