diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-28 21:08:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-28 21:08:56 +0000 |
commit | d2cec5b043361ee798a0522244135f4ea87838f6 (patch) | |
tree | 3ad43aed8a8c373f85a2a3adf286b045c14f6cfe /src/gui_mac.c | |
parent | 607a95ed81973faab2e1c3d9c91822082694fdc3 (diff) | |
download | vim-git-d2cec5b043361ee798a0522244135f4ea87838f6.tar.gz |
updated for version 7.0c02v7.0c02
Diffstat (limited to 'src/gui_mac.c')
-rw-r--r-- | src/gui_mac.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_mac.c b/src/gui_mac.c index 0acc3dbce..420f16cdb 100644 --- a/src/gui_mac.c +++ b/src/gui_mac.c @@ -1066,6 +1066,11 @@ HandleODocAE(const AppleEvent *theAEvent, AppleEvent *theReply, long refCon) 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; } |