]> granicus.if.org Git - neomutt/commitdiff
Advance by the correct number of position even for unknown characters (#368)
authorPietro Cerutti <gahr@gahr.ch>
Fri, 10 Feb 2017 17:09:51 +0000 (17:09 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Fri, 10 Feb 2017 17:12:28 +0000 (17:12 +0000)
Closes #245

pager.c

diff --git a/pager.c b/pager.c
index 77382d23186f8b8a5d671d6e18aad318da4225ef..b0dfe9e435410ee1c74af32a7ddd30bfbbd2eb3b 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -1339,7 +1339,7 @@ static int format_line (struct line_t **lineInfo, int n, unsigned char *buf,
     {
       if (col + 1 > wrap_cols)
        break;
-      ++col;
+      col += k;
       if (pa)
        addch (replacement_char ());
     }