diff options
author | June McEnroe <june@causal.agency> | 2019-07-11 23:36:41 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-07-11 23:36:41 -0400 |
commit | 9d82c0e14146068902dafbddb6e6e31091bc7b68 (patch) | |
tree | 0ed3957c575d5c856cd8533cf36cbb2e70bdfd52 /bin | |
parent | Interpret 256color-style SGRs (diff) | |
download | src-9d82c0e14146068902dafbddb6e6e31091bc7b68.tar.gz src-9d82c0e14146068902dafbddb6e6e31091bc7b68.zip |
Don't do carriage return on line feed
Diffstat (limited to '')
-rw-r--r-- | bin/shotty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/shotty.c b/bin/shotty.c index 17dc714d..66651af8 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; } |