aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index ad40dc3e..7a033330 100644
--- a/terminal.h
+++ b/terminal.h
@@ -32,11 +32,18 @@ enum damage_type {DAMAGE_UPDATE, DAMAGE_ERASE, DAMAGE_SCROLL};
struct damage {
enum damage_type type;
union {
+ /* DAMAGE_UPDATE, DAMAGE_ERASE */
struct {
int start;
int length;
- } range; /* DAMAGE_UPDATE, DAMAGE_ERASE */
- int lines; /* DAMAGE_SCROLL */
+ } range;
+
+ /* DAMAGE_SCROLL */
+ struct {
+ int top_margin;
+ int bottom_margin;
+ int lines;
+ } scroll;
};
};