X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=history.c;h=92bdb9f6884f0c4abe21809819dca1d7527653bf;hp=215a0ef793efced669c0d764a0954344d11d27f2;hb=cba0e6e5396174e213987bd0d45cc6f25dc78b05;hpb=617e7d83d14e14e6a520a48e75437211b16c8834 diff --git a/history.c b/history.c index 215a0ef..92bdb9f 100644 --- a/history.c +++ b/history.c @@ -71,8 +71,8 @@ void mutt_history_add (history_class_t hclass, const char *s) prev = h->last - 1; if (prev < 0) prev = HistSize - 1; - if (!h->hist[prev] || str_cmp (h->hist[prev], s) != 0) { - str_replace (&h->hist[h->last++], s); + if (!h->hist[prev] || m_strcmp(h->hist[prev], s) != 0) { + m_strreplace(&h->hist[h->last++], s); if (h->last > HistSize - 1) h->last = 0; }