From f2740bd85834a2f942286c19b4f355e2b7d248b3 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Thu, 31 Jan 2008 16:19:00 +0100 Subject: [PATCH] Order window front when opening files Ensure that the window is ordered front when opening files in an already open window (otherwise a newly open filed may be in an obscured window). --- src/MacVim/MMAppController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MacVim/MMAppController.m b/src/MacVim/MMAppController.m index 64bfe7dbf2..7b26619214 100644 --- a/src/MacVim/MMAppController.m +++ b/src/MacVim/MMAppController.m @@ -255,6 +255,7 @@ typedef struct if ((openInTabs && (vc = [self topmostVimController])) || (vc = [self findUntitledWindow])) { // Open files in an already open window. + [[[vc windowController] window] makeKeyAndOrderFront:self]; [self passArguments:arguments toVimController:vc]; } else { // Open files in a launching Vim process or start a new process.