aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2014-11-08 12:58:31 +0000
committernicm <nicm>2014-11-08 12:58:31 +0000
commit8f1302282b02f07e0868fbcdb79bb5404010ad4e (patch)
treeb9e109907b7c1e5fbaeb05fea58d506350e91439 /screen-write.c
parentc6129f9c09ddc08d24640eeff1aa3082535f13c1 (diff)
downloadrtmux-8f1302282b02f07e0868fbcdb79bb5404010ad4e.tar.gz
rtmux-8f1302282b02f07e0868fbcdb79bb5404010ad4e.tar.bz2
rtmux-8f1302282b02f07e0868fbcdb79bb5404010ad4e.zip
Two improvements to reflow from Balazs Kezes:
- Don't extend the line to full width on insert/delete character which means leaves extra spaces when reflowing. - Only mark a line wrapped when the cursor actually goes off the end, not on newlines which can be used for positioning.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index 37e2b548..e38c9f53 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -795,8 +795,6 @@ screen_write_linefeed(struct screen_write_ctx *ctx, int wrapped)
gl = &s->grid->linedata[s->grid->hsize + s->cy];
if (wrapped)
gl->flags |= GRID_LINE_WRAPPED;
- else
- gl->flags &= ~GRID_LINE_WRAPPED;
if (s->cy == s->rlower)
grid_view_scroll_region_up(s->grid, s->rupper, s->rlower);