Merge branch 'clear-linebreak-flag-when-printing'

Closes #410
This commit is contained in:
Daniel Eklöf 2021-03-25 09:35:21 +01:00
commit eb3f9f14b0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 4 additions and 0 deletions

View file

@ -35,6 +35,8 @@
bindings instead (https://codeberg.org/dnkl/foot/issues/407).
* Custom `line-height` settings now scale when increasing or
decreasing the font size at run-time.
* Newlines sometimes incorrectly inserted into copied text
(https://codeberg.org/dnkl/foot/issues/410).
### Security

View file

@ -2870,6 +2870,7 @@ term_print(struct terminal *term, wchar_t wc, int width)
cell->attrs = term->vt.attrs;
row->dirty = true;
row->linebreak = false;
cell->attrs.clean = 0;
/* Advance cursor the 'additional' columns while dirty:ing the cells */
@ -2909,6 +2910,7 @@ ascii_printer_fast(struct terminal *term, wchar_t wc)
cell->attrs = term->vt.attrs;
row->dirty = true;
row->linebreak = false;
cell->attrs.clean = 0;
/* Advance cursor */