Do not open files in "unused windows"
commite6a1df5c808d6bf695bf0fdaed70a7e3417a6610
authorBjorn Winckler <bjorn.winckler@gmail.com>
Tue, 16 Feb 2010 18:04:47 +0000 (16 19:04 +0100)
committerBjorn Winckler <bjorn.winckler@gmail.com>
Tue, 16 Feb 2010 18:10:16 +0000 (16 19:10 +0100)
tree3c7faf2b05b391edc658d1355a6eb86d72b38b8b
parentba5c156cfd2a679d4909c1fe8354c3cdaccfebb1
Do not open files in "unused windows"

A window is "unused" if it has just been opened with Cmd+n.  Previously
a file opened from Finder would be opened in an unused window if one was
available.  This leads to problems with some Vim options, e.g. trying to
open an encrypted file from Spotlight will fail.  The code that has been
removed also had some quite ugly hacks and it is not entirely clear
whether the reuse of unused windows was entirely intuitive.

(The "Open files from applications" option is not affected by this
change.)
src/MacVim/MMAppController.m
src/MacVim/MMBackend.m
src/MacVim/MMVimController.m