vt: '\n' now calls term_linefeed()

This commit is contained in:
Daniel Eklöf 2019-07-10 16:04:46 +02:00
parent 48efc50c23
commit 3bb726eb78
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
vt.c
View file

@ -776,10 +776,7 @@ action(struct terminal *term, enum action _action, uint8_t c)
switch (c) {
case '\n':
/* LF - line feed */
if (term->cursor.row == term->scroll_region.end - 1) {
term_scroll(term, 1);
} else
term_cursor_down(term, 1);
term_linefeed(term);
break;
case '\r':