Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2008 15:34:39 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 154259 for review
Message-ID:  <200812071534.mB7FYd8c097806@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154259

Change 154259 by ed@ed_mekker on 2008/12/07 15:34:28

	Argh! How hard is it to do it right? It seems we should not do
	wrapping on tabs after all.

Affected files ...

.. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#8 edit

Differences ...

==== //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#8 (text+ko) ====

@@ -275,15 +275,13 @@
 
 	do {
 		/* Stop when we've reached the end of the line. */
-		if ((t->t_stateflags & TS_AUTOWRAP) == 0 &&
-		    t->t_cursor.tp_col == t->t_winsize.tp_col - 1)
+		if (t->t_cursor.tp_col == t->t_winsize.tp_col - 1)
 			break;
 
 		teken_subr_regular_character(t, ' ');
 		
 		/* Tab marker set. */
-		if (t->t_stateflags & TS_WRAPPED ||
-		    teken_tab_isset(t, t->t_cursor.tp_col))
+		if (teken_tab_isset(t, t->t_cursor.tp_col))
 			ntabs--;
 	} while (ntabs > 0);
 }



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