4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Dropping a file name on gvim that contains a CSI byte doesn't work
12 when editing the command line.
13 Solution: Escape the CSI byte when inserting in the input buffer. (Yukihiro
15 Files: src/gui.c, src/ui.c
18 *** ../vim-7.1.077/src/gui.c Thu May 10 19:19:15 2007
19 --- src/gui.c Tue Aug 14 12:41:43 2007
22 p = vim_strsave_escaped(fnames[i], (char_u *)"\\ \t\"|");
25 ! add_to_input_buf(p, (int)STRLEN(p));
30 p = vim_strsave_escaped(fnames[i], (char_u *)"\\ \t\"|");
33 ! add_to_input_buf_csi(p, (int)STRLEN(p));
37 *** ../vim-7.1.077/src/ui.c Thu May 10 21:14:11 2007
38 --- src/ui.c Tue Aug 14 12:41:42 2007
41 #if defined(FEAT_GUI) || defined(FEAT_MOUSE_GPM) \
42 || defined(FEAT_XCLIPBOARD) || defined(VMS) \
43 || defined(FEAT_SNIFF) || defined(FEAT_CLIENTSERVER) \
44 - || (defined(FEAT_GUI) && (!defined(USE_ON_FLY_SCROLL) \
45 - || defined(FEAT_MENU))) \
48 * Add the given bytes to the input buffer
55 ! #if (defined(FEAT_XIM) && defined(FEAT_GUI_GTK)) \
56 || (defined(FEAT_MBYTE) && defined(FEAT_MBYTE_IME)) \
57 || (defined(FEAT_GUI) && (!defined(USE_ON_FLY_SCROLL) \
58 || defined(FEAT_MENU))) \
63 ! #if ((defined(FEAT_XIM) || defined(FEAT_DND)) && defined(FEAT_GUI_GTK)) \
64 ! || defined(FEAT_GUI_MSWIN) \
65 ! || defined(FEAT_GUI_MAC) \
66 || (defined(FEAT_MBYTE) && defined(FEAT_MBYTE_IME)) \
67 || (defined(FEAT_GUI) && (!defined(USE_ON_FLY_SCROLL) \
68 || defined(FEAT_MENU))) \
69 *** ../vim-7.1.077/src/version.c Tue Aug 14 23:06:51 2007
70 --- src/version.c Wed Aug 15 20:07:06 2007
74 { /* Add new patch number below this line */
80 hundred-and-one symptoms of being an internet addict:
81 164. You got out to buy software, instead of going out for a beer.
83 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
84 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
85 \\\ download, build and distribute -- http://www.A-A-P.org ///
86 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///