From cf75528e86df4c0fef5018da38e4f2256703a818 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 17 Nov 2019 17:22:34 +0100 Subject: Revert "term: new function: term_autowrap()" This reverts commit 686405b7031736445eeb35206e4a797a8dd78d91. --- terminal.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index ae52d7a2..5511eba5 100644 --- a/terminal.c +++ b/terminal.c @@ -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) { -- cgit v1.3