SCCS-vsn: usr.bin/ul/ul.c 4.4
-/* @(#)vcrt.c 3.13 */
-static char SccsId[] = "@(#)ul.c 4.3 (Berkeley) %G%";
+/* @(#)ul.c 4.4 %G% */
+static char SccsId[] = "@(#)ul.c 4.4 (Berkeley) %G%";
default:
if (c < ' ') /* non printing */
default:
if (c < ' ') /* non printing */
} else if (obuf[col].c_char == '_') {
obuf[col].c_char = c;
obuf[col].c_mode |= UNDERL|mode;
} else if (obuf[col].c_char == '_') {
obuf[col].c_char = c;
obuf[col].c_mode |= UNDERL|mode;
+ } else if (obuf[col].c_char == c)
obuf[col].c_mode |= BOLD|mode;
obuf[col].c_mode |= BOLD|mode;
+ else {
+ obuf[col].c_mode = c;
+ obuf[col].c_mode = mode;
+ }
col++;
if (col > maxcol)
maxcol = col;
continue;
}
col++;
if (col > maxcol)
maxcol = col;
continue;
}
+ if (maxcol)
+ flushln();