From 8f1302282b02f07e0868fbcdb79bb5404010ad4e Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 8 Nov 2014 12:58:31 +0000 Subject: 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. --- screen-write.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'screen-write.c') 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); -- cgit