From a548b928816889f8f2aa5bfe8f755d8234ce19db Mon Sep 17 00:00:00 2001 From: pdmef Date: Tue, 15 Mar 2005 22:17:28 +0000 Subject: [PATCH] Rocco Rutte: determine candidates for !$quote_empty by $quote_regexp git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@181 e385b8ad-14ed-0310-8656-cc95a2468c6d --- muttlib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/muttlib.c b/muttlib.c index 876063d..711b3d8 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1318,8 +1318,10 @@ void state_prefix_putc (char c, STATE *s) while (regexec ((regex_t *) QuoteRegexp.rx, &Quotebuf[offset], 1, pmatch, 0) == 0) offset += pmatch->rm_eo; - if (!option (OPTQUOTEEMPTY) && Quotebuf[0] == '\n') - strcpy (buf, Quotebuf); + if (!option (OPTQUOTEEMPTY) && Quotebuf[offset] == '\n') { + buf[0] = '\n'; + buf[1] = '\0'; + } else if (option (OPTQUOTEQUOTED) && offset) { for (i = 0; i < offset; i++) -- 2.20.1