Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jan 2009 23:22:01 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186687 - head/sys/dev/syscons/teken
Message-ID:  <200901012322.n01NM1rd081518@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901012322.n01NM1rd081518>