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;
 }
 
13dff36b175&follow=1'>Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe 2020-02-11Cast towupper to wchar_tJune McEnroe 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroeer-highlight'> 2022-06-08Add Maiden, Mother, CroneJune McEnroe Mixed bag like most collections of short stories. Some of them are pretty good. The author of the worst written story also has the worst written bio. 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe