summaryrefslogtreecommitdiff
path: root/chat/bitchx/patches/patch-ad
blob: 63d05ef75c4ea10dbe35a2c29928ea0e3462a975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ad,v 1.3 2004/11/26 11:38:14 adam Exp $

--- source/screen.c.orig	2003-07-31 07:01:08.000000000 +0000
+++ source/screen.c
@@ -2974,6 +2974,8 @@ static 	char 	retbuf[512];
 
 	if (back == 58)
 		strcat(retbuf, current_term->TI_sgrstrs[TERM_SGR_BLINK_ON - 1]);
+	if (fore > 57)
+		fore = last_fore;
 	if (fore > -1)
 		strcat(retbuf, current_term->TI_forecolors[fore_conv[fore]]);
 	if (back > -1 && back < 58)