freebsd-ports/editors/joe2/files/patch-ac
Bill Fenner e7804d3636 Use bold (if available) when underlining is not available.
PR:		ports/4521
Submitted by:	Dan Nelson <dnelson@emsphone.com>
1998-01-22 01:44:14 +00:00

17 lines
445 B
Plaintext

--- scrn.c.old Thu Oct 6 02:10:07 1994
+++ scrn.c Thu Sep 11 11:45:47 1997
@@ -288,6 +288,12 @@
if(!(t->uc=jgetstr(t->cap,"uc"))) if(t->ul) t->uc="_";
if(t->uc) t->avattr|=UNDERLINE;
+/* If we don't have underline, but we do have bold, print underline as bold */
+if (!(t->avattr & UNDERLINE) && t->md != NULL)
+ {
+ t->us = t->md ; t->ue = t->me ; t->avattr |= UNDERLINE;
+ }
+
t->ms=getflag(t->cap,"ms");
t->da=getflag(t->cap,"da");