about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-31 20:15:42 -0400
committerJune McEnroe <june@causal.agency>2017-07-31 20:15:42 -0400
commit3d7768d1a6d3d56f9a472f2a2b981be515a3bef0 (patch)
tree3b1b87323bc2fd67a08e95f5b5fa1927d6ebc95e
parentTrack tile access counts (diff)
downloadtorus-3d7768d1a6d3d56f9a472f2a2b981be515a3bef0.tar.gz
torus-3d7768d1a6d3d56f9a472f2a2b981be515a3bef0.zip
Perform enter as two moves rather than a loop
Diffstat (limited to '')
-rwxr-xr-xclient.c4
1 files changed, 1 insertions, 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);
e Just CityJune McEnroe 2019-09-12Only GET the final redirect locationJune McEnroe 2019-09-12Consume entire bodyJune McEnroe 2019-09-10Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe 2019-09-08Set title User-AgentJune McEnroe 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe