From 62812a5f3aee2714046da50bce4c6cef7d09084c Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sat, 17 Jan 2009 20:34:51 +0100 Subject: [PATCH] Always respect MMLayoutVerticalSplit This flag used to be ignored when dropping a file onto a window. --- src/MacVim/MMVimController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MacVim/MMVimController.m b/src/MacVim/MMVimController.m index ab756d21..2e3738f7 100644 --- a/src/MacVim/MMVimController.m +++ b/src/MacVim/MMVimController.m @@ -252,6 +252,10 @@ static BOOL isUnsafeMessage(int msgid); if (layout < 0 || layout > MMLayoutTabs) layout = MMLayoutTabs; + BOOL splitVert = [ud boolForKey:MMVerticalSplitKey]; + if (splitVert && MMLayoutHorizontalSplit == layout) + layout = MMLayoutVerticalSplit; + NSDictionary *args = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt:layout], @"layout", filenames, @"filenames", -- 2.11.4.GIT