To: vim-dev@vim.org Subject: Patch 7.2a.015 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 7.2a.015 (after 7.2a.010) Problem: Misaligned messages. Solution: Compute length of unprintable chars correctly. Files: src/message.c *** ../vim-7.2a.014/src/message.c Sun Jun 29 16:15:20 2008 --- src/message.c Mon Jun 30 22:50:32 2008 *************** *** 1390,1397 **** attr); plain_start = str + 1; msg_puts_attr(s, attr == 0 ? hl_attr(HLF_8) : attr); } ! retval += char2cells(*str); ++str; } } --- 1390,1399 ---- attr); plain_start = str + 1; msg_puts_attr(s, attr == 0 ? hl_attr(HLF_8) : attr); + retval += STRLEN(s); } ! else ! ++retval; ++str; } } *** ../vim-7.2a.014/src/version.c Fri Jul 4 18:51:00 2008 --- src/version.c Sun Jul 6 19:14:31 2008 *************** *** 678,679 **** --- 678,681 ---- { /* Add new patch number below this line */ + /**/ + 15, /**/ -- hundred-and-one symptoms of being an internet addict: 167. You have more than 200 websites bookmarked. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///