aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-17 16:22:34 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-17 16:22:34 +0000
commitcf75528e86df4c0fef5018da38e4f2256703a818 (patch)
tree00a9e46c119610621cd02ceb1041a7d772a07898
parentRevert "vt: replace pre_print() with term_autowrap()" (diff)
Revert "term: new function: term_autowrap()"
This reverts commit 686405b7031736445eeb35206e4a797a8dd78d91.
-rw-r--r--terminal.c15
-rw-r--r--terminal.h1
2 files changed, 0 insertions, 16 deletions
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)
{
diff --git a/terminal.h b/terminal.h
index bd12764c..f5d7658f 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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);