2 Subject: Patch 6.2.243 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Mac: Dropping a file on a Vim icon causes a hit-enter prompt.
12 Solution: Move the dropped files to the global argument list, instead of the
13 usual drop handling. (Eckehard Berns)
14 Files: src/main.c, src/gui_mac.c
17 *** ../vim-6.2.242/src/main.c Fri Feb 6 19:35:39 2004
18 --- src/main.c Sat Feb 7 18:30:04 2004
22 * This seems to be required to make callbacks to be called now, instead
23 * of after things have been put on the screen, which then may be deleted
24 * when getting a resize callback.
25 + * For the Mac this handles putting files dropped on the Vim icon to
30 *** ../vim-6.2.242/src/gui_mac.c Sun Jan 25 20:45:55 2004
31 --- src/gui_mac.c Fri Feb 6 20:36:38 2004
44 + /* these are the initial files dropped on the Vim icon */
45 + for (i = 0 ; i < numFiles; i++)
47 + if (ga_grow(&global_alist.al_ga, 1) == FAIL
48 + || (p = vim_strsave(fnames[i])) == NULL)
51 + alist_add(&global_alist, p, 2);
57 /* Handle the drop, :edit to get to the file */
58 handle_drop(numFiles, fnames, FALSE);
63 update_screen(NOT_VALID);
71 AEDisposeDesc(&theList); /* dispose what we allocated */
73 *** ../vim-6.2.242/src/version.c Fri Feb 6 19:35:39 2004
74 --- src/version.c Sun Feb 8 14:37:59 2004
78 { /* Add new patch number below this line */
84 hundred-and-one symptoms of being an internet addict:
85 83. Batteries in the TV remote now last for months.
87 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
88 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
89 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
90 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///