mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: implement (untested!) smam and rmam (auto margins)
Default is auto-margins enabled (scroll when cursor reaches right margin).
This commit is contained in:
parent
90dadfcc22
commit
3c67628c57
3 changed files with 4 additions and 3 deletions
2
vt.c
2
vt.c
|
|
@ -690,7 +690,7 @@ action(struct terminal *term, enum action action, uint8_t c)
|
|||
break;
|
||||
|
||||
case ACTION_PRINT: {
|
||||
if (term->print_needs_wrap) {
|
||||
if (term->auto_margin && term->print_needs_wrap) {
|
||||
if (term->cursor.row == term->scroll_region.end - 1) {
|
||||
term_scroll(term, 1);
|
||||
term_cursor_to(term, term->cursor.row, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue