diff options
author | Ed Schouten <ed@FreeBSD.org> | 2010-12-05 10:15:23 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2010-12-05 10:15:23 +0000 |
commit | 9d67d2214f19d6f3aeb09f26a89f104415dd4d97 (patch) | |
tree | 7800ae6521ab1c6fe36b86d915b6ccfe654248d2 /sys/teken/teken_subr.h | |
parent | 5c06c8a134ccf9f587c82773dba70d203e79ce2a (diff) | |
download | src-9d67d2214f19d6f3aeb09f26a89f104415dd4d97.tar.gz src-9d67d2214f19d6f3aeb09f26a89f104415dd4d97.zip |
Notes
Diffstat (limited to 'sys/teken/teken_subr.h')
-rw-r--r-- | sys/teken/teken_subr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/teken/teken_subr.h b/sys/teken/teken_subr.h index c84679a36604..2934bcc838db 100644 --- a/sys/teken/teken_subr.h +++ b/sys/teken/teken_subr.h @@ -1299,10 +1299,9 @@ teken_subr_vertical_position_absolute(teken_t *t, unsigned int row) { 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_stateflags &= ~TS_WRAPPED; teken_funcs_cursor(t); } |