aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-03-04 07:34:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-03-05 17:55:01 +0000
commit7b6efcf19a10794dd7b41e30ce706eae3a290388 (patch)
tree973ee566a9f8d5e1a6e364d5df5837e1dcac9930 /input.c
parentterm: tweak linebreaking (diff)
grid: change default value of linebreak to true
This way, all lines are treated as having a hard linebreak, until it's cleared when we do an auto-wrap. This change alone causes issues when reflowing text, as now all trailing lines in an otherwise empty window are treated as hard linebreaks, causing the new grid to insert lots of unwanted, empty lines. Fix by doing two things: * *clear* the linebreak flag when we pull in new lines for the new grid. We only want to set it explicitly, when an old row has its linebreak flag set. * Coalesce empty lines with linebreak=true, and only "emit" them as new liens in the new grid if they are followed by non-empty lines.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions