diff options
author | ed <ed@FreeBSD.org> | 2009-01-01 23:22:01 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-01-01 23:22:01 +0000 |
commit | 400538cfec48f6f2e10f631a200377e93b3f72f6 (patch) | |
tree | 60f6a1a54801a78ee9c508a01c9660ce3acdd251 | |
parent | 96b82a80dde8227dbf93f51b82b92812b3e274c0 (diff) | |
download | FreeBSD-src-400538cfec48f6f2e10f631a200377e93b3f72f6.zip FreeBSD-src-400538cfec48f6f2e10f631a200377e93b3f72f6.tar.gz |
Remove an unneeded assertion in libteken.
The cursor is only inside the scrolling region when we are in origin
mode. In that case, it should use originreg instead of scrollreg. It is
completely valid to place the cursor outside the scrolling region.
-rw-r--r-- | sys/dev/syscons/teken/teken_subr.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/syscons/teken/teken_subr.h b/sys/dev/syscons/teken/teken_subr.h index de79cfa..53aea0a 100644 --- a/sys/dev/syscons/teken/teken_subr.h +++ b/sys/dev/syscons/teken/teken_subr.h @@ -256,7 +256,6 @@ static void teken_subr_cursor_down(teken_t *t, unsigned int nrows) { - teken_assert(t->t_cursor.tp_row < t->t_scrollreg.ts_end); if (t->t_cursor.tp_row + nrows >= t->t_scrollreg.ts_end) t->t_cursor.tp_row = t->t_scrollreg.ts_end - 1; else |