Support file-open check for multiple files
commiteec43d816ff5c12975e3615bb468f1b78c96bad1
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)
treefb9b551f796645476f0ce3c8967ff13051f5eaa9
parent63bf99eed7cd2b48bfab936b78ac6cfdb4cbcda4
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