svn commit: r186687 - head/sys/dev/syscons/teken
Ed Schouten
ed at FreeBSD.org
Thu Jan 1 15:22:02 PST 2009
Author: ed
Date: Thu Jan 1 23:22:01 2009
New Revision: 186687
URL: http://svn.freebsd.org/changeset/base/186687
Log:
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.
Modified:
head/sys/dev/syscons/teken/teken_subr.h
Modified: head/sys/dev/syscons/teken/teken_subr.h
==============================================================================
--- head/sys/dev/syscons/teken/teken_subr.h Thu Jan 1 22:11:44 2009 (r186686)
+++ head/sys/dev/syscons/teken/teken_subr.h Thu Jan 1 23:22:01 2009 (r186687)
@@ -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
More information about the svn-src-all
mailing list