From 7130f99542902dbfaffc30909f53d41e066c07d7 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 11 Jul 2019 23:36:41 -0400 Subject: Don't do carriage return on line feed --- bin/shotty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/shotty.c') 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; } -- cgit 1.4.1