summaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c
index d3af19c..52bb37f 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -288,8 +288,8 @@ void vt100_screen_move_to(VT100Screen *vt, int row, int col)
col = 0;
}
- if (col > vt->grid->max.col) {
- col = vt->grid->max.col;
+ if (col >= vt->grid->max.col) {
+ col = vt->grid->max.col - 1;
}
vt->grid->cur.row = row;