summaryrefslogtreecommitdiff
path: root/usr.bin/ul
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2016-09-26 05:32:36 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2016-09-26 05:32:36 +0000
commit6628fcc374ab66a866d6b55aae239bcd4d79161e (patch)
tree924e52642e6903700dad54fd3152f77008a2f770 /usr.bin/ul
parent101063f76b0778b5017e653ec5fa72f23a7c6099 (diff)
no overstrikes in -i mode; ok millert@ guenther@
Diffstat (limited to 'usr.bin/ul')
-rw-r--r--usr.bin/ul/ul.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c
index d5f894b4b61..fcfcf83b078 100644
--- a/usr.bin/ul/ul.c
+++ b/usr.bin/ul/ul.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ul.c,v 1.21 2016/03/26 08:59:29 natano Exp $ */
+/* $OpenBSD: ul.c,v 1.22 2016/09/26 05:32:35 otto Exp $ */
/* $NetBSD: ul.c,v 1.3 1994/12/07 00:28:24 jtc Exp $ */
/*
@@ -361,7 +361,7 @@ flushln(void)
}
if (lastmode != NORMAL)
msetmode(0);
- if (must_overstrike && hadmodes)
+ if (must_overstrike && hadmodes && !iflag)
overstrike();
putwchar(L'\n');
if (iflag && hadmodes)