Revert "term: new function: term_autowrap()"

This reverts commit 686405b703.
This commit is contained in:
Daniel Eklöf 2019-11-17 17:22:34 +01:00
parent 04cbee7593
commit cf75528e86
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 0 additions and 16 deletions

View file

@ -1192,21 +1192,6 @@ term_reverse_index(struct terminal *term)
term_cursor_up(term, 1);
}
bool
term_autowrap(struct terminal *term)
{
if (unlikely(term->cursor.lcf) && term->auto_margin) {
if (term->cursor.point.row == term->scroll_region.end - 1) {
term_scroll(term, 1);
term_cursor_to(term, term->cursor.point.row, 0);
} else
term_cursor_to(term, term->cursor.point.row + 1, 0);
return true;
} else
return false;
}
void
term_reset_view(struct terminal *term)
{

View file

@ -360,7 +360,6 @@ void term_scroll_reverse_partial(
void term_linefeed(struct terminal *term);
void term_reverse_index(struct terminal *term);
bool term_autowrap(struct terminal *term);
void term_restore_cursor(struct terminal *term);