aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-06-30 17:37:01 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-06-30 17:37:01 +0000
commit37f094280b06cf207b5720fa1a36ff7199225e6b (patch)
treedc53979f6b05a516e23fa29e28b43370b991b042 /terminal.c
parentinput: don’t ignore keyboard enter/leave events when there’s no keymap (diff)
Revert "grid: invert the default value of ‘linebreak’, from false to true"
This reverts commit cdd46cdf85b1087ac7465c646bb05078f1bbe85b.
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index c449aa0e..dd84b8cf 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 = true;
+ row->linebreak = false;
row->prompt_marker = false;
}
@@ -3298,6 +3298,7 @@ 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,6 +3358,7 @@ 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;