mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: '\n' now calls term_linefeed()
This commit is contained in:
parent
48efc50c23
commit
3bb726eb78
1 changed files with 1 additions and 4 deletions
5
vt.c
5
vt.c
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue