Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Oct 2011 12:21:50 +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: r226099 - head/sys/teken
Message-ID:  <201110071221.p97CLo6o010387@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Fri Oct  7 12:21:50 2011
New Revision: 226099
URL: http://svn.freebsd.org/changeset/base/226099

Log:
  Tab should not blank cells.
  
  It seems I was under the impression that a tab differs from a single
  forward tabulation, namely that it blanks the underlying cells. This
  seems not to be the case. They are identical.
  
  This should fix applications like jove(1) that use tabs instead of
  explicit cursor position setting.
  
  Reported by:	Brett Glass <brett lariat net>
  MFC after:	3 days, after it's tested

Modified:
  head/sys/teken/teken_subr.h

Modified: head/sys/teken/teken_subr.h
==============================================================================
--- head/sys/teken/teken_subr.h	Fri Oct  7 09:51:12 2011	(r226098)
+++ head/sys/teken/teken_subr.h	Fri Oct  7 12:21:50 2011	(r226099)
@@ -595,20 +595,7 @@ static void
 teken_subr_horizontal_tab(teken_t *t)
 {
 
-	if (t->t_stateflags & TS_CONS25) {
-		teken_subr_cursor_forward_tabulation(t, 1);
-	} else {
-		teken_rect_t tr;
-
-		tr.tr_begin = t->t_cursor;
-		teken_subr_cursor_forward_tabulation(t, 1);
-		tr.tr_end.tp_row = tr.tr_begin.tp_row + 1;
-		tr.tr_end.tp_col = t->t_cursor.tp_col;
-
-		/* Blank region that we skipped. */
-		if (tr.tr_end.tp_col > tr.tr_begin.tp_col)
-			teken_funcs_fill(t, &tr, BLANK, &t->t_curattr);
-	}
+	teken_subr_cursor_forward_tabulation(t, 1);
 }
 
 static void



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