summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-11 23:36:41 -0400
committerJune McEnroe <june@causal.agency>2019-07-11 23:36:41 -0400
commit7130f99542902dbfaffc30909f53d41e066c07d7 (patch)
tree6ee9987f5464be490549be39a96e36c5930431a5 /bin
parentInterpret 256color-style SGRs (diff)
downloadsrc-7130f99542902dbfaffc30909f53d41e066c07d7.tar.gz
src-7130f99542902dbfaffc30909f53d41e066c07d7.zip
Don't do carriage return on line feed
Diffstat (limited to 'bin')
-rw-r--r--bin/shotty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/shotty.c b/bin/shotty.c
index 6003146c..9c523677 100644
--- a/bin/shotty.c
+++ b/bin/shotty.c
@@ -68,7 +68,7 @@ static void clear(struct Cell *a, struct Cell *b) {
 static char updateNUL(wchar_t ch) {
 	switch (ch) {
 		case BS: if (x) x--; return NUL;
-		case NL: y = MIN(y + 1, rows - 1); x = 0; return NUL;
+		case NL: y = MIN(y + 1, rows - 1); return NUL;
 		case CR: x = 0; return NUL;
 		case ESC: return ESC;
 	}