svn commit: r258111 - user/ed/newcons/sys/dev/vt

Aleksandr Rybalko ray at FreeBSD.org
Thu Nov 14 00:00:56 UTC 2013


Author: ray
Date: Thu Nov 14 00:00:55 2013
New Revision: 258111
URL: http://svnweb.freebsd.org/changeset/base/258111

Log:
  Simplify a bit vtbuf_set_mark.
  
  Sponsored by:   The FreeBSD Foundation

Modified:
  user/ed/newcons/sys/dev/vt/vt_buf.c

Modified: user/ed/newcons/sys/dev/vt/vt_buf.c
==============================================================================
--- user/ed/newcons/sys/dev/vt/vt_buf.c	Wed Nov 13 23:58:45 2013	(r258110)
+++ user/ed/newcons/sys/dev/vt/vt_buf.c	Thu Nov 14 00:00:55 2013	(r258111)
@@ -656,17 +656,14 @@ vtbuf_set_mark(struct vt_buf *vb, int ty
 		    vtbuf_wth(vb, row);
 		break;
 	case VTB_MARK_NONE:
-		break;
 	default:
 		/* panic? */
 		return (0);
 	}
-	if (type != VTB_MARK_NONE) {
-		/* Draw new marked region. */
-		vtbuf_flush_mark(vb);
-		return (1);
-	}
-	return (0);
+
+	/* Draw new marked region. */
+	vtbuf_flush_mark(vb);
+	return (1);
 }
 
 void


More information about the svn-src-user mailing list