about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-26 17:59:39 -0400
committerJune McEnroe <june@causal.agency>2018-08-26 17:59:39 -0400
commit785b737910362f4362a35dbc3963c188cf295fbc (patch)
treef8b8ebfd3c08654ca9ba0fe3174666cf387a91e9
parentAdd line mode (diff)
downloadtorus-785b737910362f4362a35dbc3963c188cf295fbc.tar.gz
torus-785b737910362f4362a35dbc3963c188cf295fbc.zip
Leave line mode with .
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 411ef81..29e1cce 100644
--- a/client.c
+++ b/client.c
@@ -621,7 +621,7 @@ static void inputLine(bool keyCode, wchar_t ch) {
 		}
 	} else {
 		switch (ch) {
-			break; case ESC: modeNormal(); return;
+			break; case ESC: case '.': modeNormal(); return;
 			break; case 'h': dx = -1;
 			break; case 'l': dx =  1;
 			break; case 'k': dy = -1;
le='2022-06-03 10:34:51 -0400'>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