Loading ...
Sorry, an error occurred while loading the content.

1454Re: Mac-VIM doesn't cooperate with Finder

Expand Messages
  • Axel Kielhorn
    Feb 8, 2004
      Am 06.02.2004 um 20:23 schrieb Eckehard Berns:
      > Here's the patch (I don't know if one could omit the #ifdef's since
      > I'm doing nothing OS X specific--I'm just afraid of breaking Mac OS
      > Classic versions and added them as a precaution):
      >
      > diff -cr ../vim62.238/src/gui_mac.c ./src/gui_mac.c
      > *** ../vim62.238/src/gui_mac.c Mon Jan 26 18:16:14 2004
      > --- ./src/gui_mac.c Fri Feb 6 20:13:03 2004
      > ***************
      > *** 1162,1167 ****
      > --- 1162,1184 ----
      > return (error);
      > }
      >
      > + #ifdef MACOS_X_UNIX
      > + if (starting == 1) {
      > + int i;
      > + char_u *p;
      > +
      > + /* these are the initial files dropped on the Vim icon */
      > + for (i = 0 ; i < numFiles; i++) {
      > + if (ga_grow(&global_alist.al_ga, 1) == FAIL
      > + || (p = vim_strsave(fnames[i])) == NULL)
      > + mch_exit(2);
      > + else
      > + alist_add(&global_alist, p, 2);
      > + }
      > + goto finished;
      > + }
      > + #endif
      > +
      > /* Handle the drop, :edit to get to the file */
      > handle_drop(numFiles, fnames, FALSE);
      >
      > ***************
      > *** 1189,1194 ****
      > --- 1206,1214 ----
      > setcursor();
      > out_flush();
      >
      > + #ifdef MACOS_X_UNIX
      > + finished:
      > + #endif
      > AEDisposeDesc(&theList); /* dispose what we allocated */
      >
      > error = HandleUnusedParms (theAEvent);
      >

      I removed the #ifdef and compiled Vim 6.2.242 for Classic.
      The "Hit Return" prompt is gone, I´ll watch out for side effects.

      Axel
    • Show all 22 messages in this topic