4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The last characters of a multi-byte file name may not be displayed
13 Solution: Avoid to remove a multi-byte character where the last byte looks
14 like a path separator character. (Yasuhiro Matsumoto)
15 Files: src/buffer.c, src/ex_getln.c
18 *** ../vim-6.3.055/src/buffer.c Sun Dec 5 16:18:46 2004
19 --- src/buffer.c Thu Dec 16 13:59:48 2004
25 ! while (p > buf + off + 1 && vim_ispathsep(p[-1]))
28 /* path separator is part of the path */
33 ! while (p > buf + off + 1 && vim_ispathsep(p[-1])
36 ! || (*mb_head_off)(buf + off, p - 1) == 0)
41 /* path separator is part of the path */
42 *** ../vim-6.3.055/src/ex_getln.c Thu Jan 13 14:17:23 2005
43 --- src/ex_getln.c Thu Jan 13 14:22:02 2005
47 i = (int)(xpc.xp_pattern - ccline.cmdbuff);
52 + j -= (*mb_head_off)(ccline.cmdbuff, ccline.cmdbuff + j);
54 if (vim_ispathsep(ccline.cmdbuff[j]))
57 *** ../vim-6.3.055/src/version.c Thu Jan 13 14:17:23 2005
58 --- src/version.c Thu Jan 13 16:21:13 2005
62 { /* Add new patch number below this line */
68 Vim is like Emacs without all the typing. (John "Johann" Spetz)
70 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
71 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
72 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
73 \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///