diff src/gui_mac.c @ 816:4a79d6d376f0 v7.0c02

updated for version 7.0c02
author vimboss
date Tue, 28 Mar 2006 21:08:56 +0000
parents 68c15f2c7d3f
children 1f929f3ca806
line wrap: on
line diff
--- a/src/gui_mac.c
+++ b/src/gui_mac.c
@@ -1066,6 +1066,11 @@ HandleODocAE(const AppleEvent *theAEvent
 	    else
 		alist_add(&global_alist, p, 2);
 	}
+
+	/* Change directory to the location of the first file. */
+	if (GARGCOUNT > 0 && vim_chdirfile(alist_name(&GARGLIST[0])) == OK)
+	    shorten_fnames(TRUE);
+
 	goto finished;
     }