From 686405b7031736445eeb35206e4a797a8dd78d91 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 17 Nov 2019 12:13:36 +0100 Subject: term: new function: term_autowrap() Adds a linebreak (+ scroll if necessary) if we're in a deferred wrap and auto-margins are enabled. Return true when we wrapped, false otherwise. --- terminal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index f5d7658f..bd12764c 100644 --- a/terminal.h +++ b/terminal.h @@ -360,6 +360,7 @@ 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); -- cgit v1.3