]> granicus.if.org Git - neomutt/commitdiff
fix display of special chars
authorRichard Russon <rich@flatcap.org>
Mon, 1 Jan 2018 11:43:56 +0000 (11:43 +0000)
committerRichard Russon <rich@flatcap.org>
Mon, 1 Jan 2018 11:43:56 +0000 (11:43 +0000)
init.c

diff --git a/init.c b/init.c
index e4b4a1b7e9ca0906318ea6edca0b08ef8fa8a8dc..c7602036eba0444bc83302ec9c8d05b83dc5bda6 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2075,12 +2075,15 @@ static size_t escape_string(char *dst, size_t len, const char *src)
     {
       case '\n':
         esc_char('n', p, dst, len);
+        p += 2;
         break;
       case '\r':
         esc_char('r', p, dst, len);
+        p += 2;
         break;
       case '\t':
         esc_char('t', p, dst, len);
+        p += 2;
         break;
       default:
         if ((*src == '\\' || *src == '"') && p - dst < len - 1)