aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-15 18:00:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-15 18:00:18 +0000
commita089d6264d941876f4fc6292a28770dfd708007a (patch)
treeaf784319f0f379271f99562568d125b536853460 /terminal.h
parentrender: resize: don't reflow text if grid layout hasn't changed (diff)
parentrender: reflow: set 'linebreak' flag before inserting new line (diff)
Merge branch 'text-reflow-fixes'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 449a1329..1d19c9d7 100644
--- a/terminal.h
+++ b/terminal.h
@@ -42,8 +42,7 @@ struct attributes {
uint32_t have_fg:1;
uint32_t have_bg:1;
uint32_t selected:2;
- uint32_t linefeed:1;
- uint32_t reserved:2;
+ uint32_t reserved:3;
uint32_t bg:24;
};
static_assert(sizeof(struct attributes) == 8, "bad size");
@@ -84,6 +83,7 @@ struct damage {
struct row {
struct cell *cells;
bool dirty;
+ bool linebreak;
};
struct grid {