diff options
Diffstat (limited to 'sys/teken/teken_subr.h')
-rw-r--r-- | sys/teken/teken_subr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/teken/teken_subr.h b/sys/teken/teken_subr.h index af70a00..64f4e54 100644 --- a/sys/teken/teken_subr.h +++ b/sys/teken/teken_subr.h @@ -325,7 +325,7 @@ teken_subr_cursor_position(teken_t *t, unsigned int row, unsigned int col) { t->t_cursor.tp_row = t->t_originreg.ts_begin + row - 1; - if (row >= t->t_originreg.ts_end) + if (t->t_cursor.tp_row >= t->t_originreg.ts_end) t->t_cursor.tp_row = t->t_originreg.ts_end - 1; t->t_cursor.tp_col = col - 1; |