summaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 002ebbe..b909cfb 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -864,7 +864,7 @@ int vt100_screen_row_max_col(VT100Screen *vt, int row)
}
}
- return max + 1;
+ return max + ((max < vt->grid->max.col - 1 && cells[max].is_wide) ? 2 : 1);
}
void vt100_screen_cleanup(VT100Screen *vt)