X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=state.c;h=12f3e992f5325130029b7d0e05a66de2d3b57632;hp=4d4c19ae150845522322a08632e6992cf8f7d889;hb=24a996896edb7b7fc8f5fd5950a07c4a52a42d05;hpb=40fc05e11b8f95a9661e6e410a9e7b7da7824891 diff --git a/state.c b/state.c index 4d4c19a..12f3e99 100644 --- a/state.c +++ b/state.c @@ -12,8 +12,7 @@ #include #include - -#include +#include #include "mutt.h" #include "state.h" @@ -77,9 +76,6 @@ void state_prefix_putc (char c, STATE * s) char buf[2 * SHORT_STRING]; int j = 0, offset = 0; regmatch_t pmatch[1]; -#ifdef DEBUG - unsigned char save = '\0'; -#endif state_reset_prefix (s); while (regexec @@ -101,15 +97,6 @@ void state_prefix_putc (char c, STATE * s) else snprintf (buf, sizeof (buf), "%s%s", NONULL (s->prefix), Quotebuf); -#ifdef DEBUG - if (m_strlen(buf) >= 2) { - save = buf[m_strlen(buf) - 1]; - buf[m_strlen(buf) - 1] = '\0'; - debug_print (2, ("buf = '%s'\n", buf)); - buf[m_strlen(buf)] = save; - } -#endif - state_puts (buf, s); } }