mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Always respect MMLayoutVerticalSplit
This flag used to be ignored when dropping a file onto a window.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user