aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-25 08:35:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-25 08:35:21 +0000
commiteb3f9f14b0ffb2f0426e0380061f3223916ac9be (patch)
treebd0c20a1b2c8f1d3d4f7be5135d244c2c0a20671
parentMerge branch 'zoom-line-height' (diff)
parentchangelog: newlines incorrectly inserted into copied text (diff)
Merge branch 'clear-linebreak-flag-when-printing'
Closes #410
-rw-r--r--CHANGELOG.md2
-rw-r--r--terminal.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e065995..ff203ed7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/terminal.c b/terminal.c
index cf0e1d13..cc423395 100644
--- a/terminal.c
+++ b/terminal.c
@@ -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 */