4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: After patch 2.0.203 CSI and K_SPECIAL characters are escaped when
12 recorded and then again when the register is executed.
13 Solution: Remove escaping before putting the recorded characters in a
14 register. (Yukihiro Nakadaira)
15 Files: src/getchar.c, src/ops.c, src/proto/getchar.pro
18 *** ../vim-7.0.206/src/getchar.c Tue Feb 27 23:06:44 2007
19 --- src/getchar.c Sun Mar 4 21:19:50 2007
29 + * Remove escaping from CSI and K_SPECIAL characters. Reverse of
30 + * vim_strsave_escape_csi(). Works in-place.
36 + char_u *s = p, *d = p;
40 + if (s[0] == K_SPECIAL && s[1] == KS_SPECIAL && s[2] == KE_FILLER)
45 + else if ((s[0] == K_SPECIAL || s[0] == CSI)
46 + && s[1] == KS_EXTRA && s[2] == (int)KE_CSI)
58 *** ../vim-7.0.206/src/ops.c Tue Feb 27 17:25:28 2007
59 --- src/ops.c Sun Mar 4 21:23:47 2007
66 + /* Remove escaping for CSI and K_SPECIAL in multi-byte chars. */
67 + vim_unescape_csi(p);
70 * We don't want to change the default register here, so save and
71 * restore the current register name.
72 *** ../vim-7.0.206/src/proto/getchar.pro Sun Apr 30 20:38:15 2006
73 --- src/proto/getchar.pro Sun Mar 4 21:19:41 2007
77 extern int ExpandMappings __ARGS((regmatch_T *regmatch, int *num_file, char_u ***file));
78 extern int check_abbr __ARGS((int c, char_u *ptr, int col, int mincol));
79 extern char_u *vim_strsave_escape_csi __ARGS((char_u *p));
80 + extern void vim_unescape_csi __ARGS((char_u *p));
81 extern int makemap __ARGS((FILE *fd, buf_T *buf));
82 extern int put_escstr __ARGS((FILE *fd, char_u *strstart, int what));
83 extern void check_map_keycodes __ARGS((void));
84 *** ../vim-7.0.206/src/version.c Fri Mar 2 20:00:06 2007
85 --- src/version.c Sun Mar 4 21:24:26 2007
89 { /* Add new patch number below this line */
95 hundred-and-one symptoms of being an internet addict:
96 251. You've never seen your closest friends who usually live WAY too far away.
98 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
99 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
100 \\\ download, build and distribute -- http://www.A-A-P.org ///
101 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///