From 488513a14c5e5a378896d7cf4c2daa0803643367 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 31 Jul 2017 20:15:42 -0400 Subject: Perform enter as two moves rather than a loop --- client.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client.c b/client.c index 72c21c9..4eb726b 100755 --- a/client.c +++ b/client.c @@ -130,9 +130,7 @@ static void readInput(void) { insert.len--; } else if (c == '\n') { clientMove(insert.dy, insert.dx); - for (uint8_t i = 0; i < insert.len; ++i) { - clientMove(-insert.dx, -insert.dy); - } + clientMove(-insert.dx * insert.len, -insert.dy * insert.len); insert.len = 0; } else if (isprint(c)) { clientPut(inputColor, c); -- cgit 1.4.1 n> dontfiles
summary refs log tree commit diff
path: root/home/.local/bin (unfollow)
Commit message (Collapse)Author
2019-12-18Customize cgit CSSJune McEnroe
2019-12-18Use :target rather than :focus pseudo-classJune McEnroe
:target persists after you click on something else.
2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe
2019-12-18Add git.causal.agency cgit configJune McEnroe
2019-12-18Bail from hi if input is binaryJune McEnroe
NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc.
2019-12-16Post "cgit setup"June McEnroe