4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Events for the netbeans interface that include a file name with
12 special characters don't work properly.
13 Solution: Use nb_quote() on the file name. (Sergey Khorev)
17 *** ../vim-6.2.067/src/netbeans.c Sun Jul 27 14:16:53 2003
18 --- src/netbeans.c Sun Aug 10 22:08:26 2003
24 * Send a response with text.
25 + * "result" must have been quoted already (using nb_quote()).
28 nb_reply_text(int cmdno, char_u *result)
32 sprintf(buffer, "0:fileOpened=%d \"%s\" %s %s\n",
35 "F", /* open in NetBeans */
40 sprintf(buffer, "0:fileOpened=%d \"%s\" %s %s\n",
42 ! nb_quote((char_u *)filename),
43 "F", /* open in NetBeans */
50 nbdebug(("got keycommand for non-NetBeans buffer, opening...\n"));
51 ! sprintf(buf, "0:fileOpened=%d \"%s\" %s %s\n", 0, curbuf->b_ffname,
52 "T", /* open in NetBeans */
54 nbdebug(("EVT: %s", buf));
58 nbdebug(("got keycommand for non-NetBeans buffer, opening...\n"));
59 ! sprintf(buf, "0:fileOpened=%d \"%s\" %s %s\n", 0,
60 ! curbuf->b_ffname == NULL ? (char_u *)""
61 ! : nb_quote(curbuf->b_ffname),
62 "T", /* open in NetBeans */
64 nbdebug(("EVT: %s", buf));
65 *** ../vim-6.2.067/src/version.c Sun Aug 10 22:39:59 2003
66 --- src/version.c Sun Aug 10 22:42:14 2003
70 { /* Add new patch number below this line */
76 From "know your smileys":
77 :-X My lips are sealed
79 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
80 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
81 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
82 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///