aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terminal.c7
-rw-r--r--terminal.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 56ac6cee..8804140b 100644
--- a/terminal.c
+++ b/terminal.c
@@ -22,6 +22,13 @@ term_damage_all(struct terminal *term)
}
void
+term_damage_view(struct terminal *term)
+{
+ for (int i = 0; i < term->rows; i++)
+ grid_row_in_view(term->grid, i)->dirty = true;
+}
+
+void
term_damage_scroll(struct terminal *term, enum damage_type damage_type,
struct scroll_region region, int lines)
{
diff --git a/terminal.h b/terminal.h
index 35a1fae7..7d379229 100644
--- a/terminal.h
+++ b/terminal.h
@@ -250,6 +250,7 @@ struct terminal {
};
void term_damage_all(struct terminal *term);
+void term_damage_view(struct terminal *term);
void term_damage_scroll(
struct terminal *term, enum damage_type damage_type,
struct scroll_region region, int lines);