From owner-svn-src-head@FreeBSD.ORG Thu Jan 1 23:22:01 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D28641065670; Thu, 1 Jan 2009 23:22:01 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BEEA28FC18; Thu, 1 Jan 2009 23:22:01 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n01NM1dA081519; Thu, 1 Jan 2009 23:22:01 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n01NM1rd081518; Thu, 1 Jan 2009 23:22:01 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200901012322.n01NM1rd081518@svn.freebsd.org> From: Ed Schouten Date: Thu, 1 Jan 2009 23:22:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186687 - head/sys/dev/syscons/teken X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2009 23:22:02 -0000 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