aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-06-03 13:02:31 +0100
committerThomas Adam <thomas@xteddy.org>2018-06-03 13:02:31 +0100
commit7de25d86e10466ad3a33b944de8d912c1539c3f6 (patch)
tree39419da0da2913305ac835c5f76022927ce49d9e /grid.c
parent54cd292f09147797e10ae90512e3cb357ce3caca (diff)
parentba31d3a88c8c76ec3c76d9a91373fa24e64797cd (diff)
downloadrtmux-7de25d86e10466ad3a33b944de8d912c1539c3f6.tar.gz
rtmux-7de25d86e10466ad3a33b944de8d912c1539c3f6.tar.bz2
rtmux-7de25d86e10466ad3a33b944de8d912c1539c3f6.zip
Merge branch 'obsd-master'
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/grid.c b/grid.c
index f1facc4c..c88a451b 100644
--- a/grid.c
+++ b/grid.c
@@ -1011,7 +1011,7 @@ grid_reflow_join(struct grid *target, struct grid *gd, u_int sx, u_int yy,
* If this is now the last line, there is nothing more to be
* done.
*/
- if (yy + lines == gd->hsize + gd->sy)
+ if (yy + 1 + lines == gd->hsize + gd->sy)
break;
line = yy + 1 + lines;
@@ -1021,6 +1021,7 @@ grid_reflow_join(struct grid *target, struct grid *gd, u_int sx, u_int yy,
if (gd->linedata[line].cellused == 0) {
if (!wrapped)
break;
+ lines++;
continue;
}