aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-06-01 17:28:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-06-11 10:02:20 +0000
commitcdd46cdf85b1087ac7465c646bb05078f1bbe85b (patch)
tree934c4283b412260d3c07f6e60ef98ddfd55d1faf /terminal.c
parentMerge branch 'tokyonight' (diff)
grid: invert the default value of ‘linebreak’, from false to true
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/terminal.c b/terminal.c
index 09c9caea..d8bf7516 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1811,7 +1811,7 @@ static inline void
erase_line(struct terminal *term, struct row *row)
{
erase_cell_range(term, row, 0, term->cols - 1);
- row->linebreak = false;
+ row->linebreak = true;
}
void
@@ -3297,7 +3297,6 @@ term_print(struct terminal *term, char32_t wc, int width)
/* *Must* get current cell *after* linewrap+insert */
struct row *row = grid->cur_row;
row->dirty = true;
- row->linebreak = true;
struct cell *cell = &row->cells[col];
cell->wc = term->vt.last_printed = wc;
@@ -3357,7 +3356,6 @@ ascii_printer_fast(struct terminal *term, char32_t wc)
struct row *row = grid->cur_row;
row->dirty = true;
- row->linebreak = true;
struct cell *cell = &row->cells[col];
cell->wc = term->vt.last_printed = wc;