Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Tue, 15 Mar 2005 14:27:58 +0000 (14:27 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Tue, 15 Mar 2005 14:27:58 +0000 (14:27 +0000)
fix queries of default regexps (bug reported by Andreas Kneib)

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@180 e385b8ad-14ed-0310-8656-cc95a2468c6d

init.c

diff --git a/init.c b/init.c
index 0728ffe..2bc7e2a 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1238,7 +1238,8 @@ static void mutt_restore_default (struct option_t *p)
            FREE (&pp->pattern);
            regfree (pp->rx);
            FREE (&pp->rx);
-         }
+         } else
+            mutt_str_replace (&pp->pattern, (char*) p->init);
        }
       }
       break;