quoted lines not colored in 2.3.2
Since upgrading to 2.3.2 the single quoted lines are not colored, but multiple quoted lines are.
From tinrc:
quote_regex=^([ \t]*[A-Za-z']{0,5}[>|#:}])+ quote_regex2=^\s{0,3}(([\]{}>|:)]|\w{1,3}[>|])\s*){2}(?!-[})>]) quote_regex3=^\s{0,3}(([\]{}>|:)]|\w{1,3}[>|])\s*){3} col_quote=2 col_quote2=3 col_quote3=4 -- ciao, Marco
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 { /*
On Dec 27, Urs Janßen <urs@tin.org> wrote:
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) Confirmed, thank you.
-- ciao, Marco
participants (3)
-
Marco d'Itri -
md@Linux.IT -
Urs Janßen