[tin-dev] quoted lines not colored in 2.3.2

Urs Janßen urs at tin.org
Sun Dec 27 15:05:05 CET 2015


On Sun, Dec 27, 2015 at 06:39:21AM +0100, Marco d'Itri wrote:
> Since upgrading to 2.3.2 the single quoted lines are not colored, but
> multiple quoted lines are.

the following patch should fix that. the nntplib.c patch addresses
another problem (infinite loop in reconnect)

--- src/cook.c	2015-12-23 19:42:27.931209009 +0100
+++ src/cook.c	2015-12-27 14:59:12.240766920 +0100
@@ -665,6 +665,9 @@
 						if (MATCH_REGEX(quote_regex, line, len))
 							flags |= C_QUOTE1;
 					}
+				} else if (quote_regex.re) {
+						if (MATCH_REGEX(quote_regex, line, len))
+							flags |= C_QUOTE1;
 				}
 			}
 		}

--- src/nntplib.c	2015-11-07 12:04:00 +0000
+++ src/nntplib.c	2015-12-26 14:48:46 +0000
@@ -859,10 +859,10 @@
 		DEBUG_IO((stderr, _("Resend last command (%s)\n"), buf));
 		put_server(buf);
 		did_reconnect = TRUE;
-		retry = 0;
+		return 0;
 	}
 
-	return retry;
+	return --retry;
 }
 
 
@@ -935,7 +935,7 @@
 				strcpy(last_put, "MODE READER");
 				nntp_caps.type = BROKEN;
 			}
-			retry_cnt = reconnect(retry_cnt--);		/* Will abort when out of tries */
+			retry_cnt = reconnect(retry_cnt);		/* Will abort when out of tries */
 			reconnected_in_last_get_server = TRUE;
 		} else {
 			/*





More information about the tin-dev mailing list