Support file-open check for multiple files
commit87e73da75426eece23badcb4bccc16376b4191ac
authorBjorn Winckler <bjorn.winckler@gmail.com>
Sun, 11 Nov 2007 19:27:03 +0000 (11 20:27 +0100)
committerBjorn Winckler <bjorn.winckler@gmail.com>
Sun, 11 Nov 2007 19:27:03 +0000 (11 20:27 +0100)
treee262aebd043fccbea43ee38500c1cbbc6a796820
parent955087ca1d3348de5a4aca136977476b3ed27142
Support file-open check for multiple files

When dropping multiple files, make sure none of the files are already open.  If
all files were already open, then select the window and tab of the first file
that was open.  If at least one file was not already open, then simply ignore
the open files and open the unopened ones.

Also don't check if files exists inside application:openFiles: since files that
are passed here are assumed to already exists.  The existence check has been
moved to the system services message openFile:userData:error:.
src/MacVim/MMAppController.m
src/MacVim/MacVim.h
src/MacVim/MacVim.m