Skip to content

Commit 5b2209b

Browse files
committed
Merge pull request #85 from timkendrick/feature/open-directory
Allow directory selection in Open dialog
2 parents 3cdaa48 + 3daab98 commit 5b2209b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/MacVim/MMAppController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,7 @@ - (IBAction)fileOpen:(id)sender
10801080

10811081
NSOpenPanel *panel = [NSOpenPanel openPanel];
10821082
[panel setAllowsMultipleSelection:YES];
1083+
[panel setCanChooseDirectories:YES];
10831084
[panel setAccessoryView:showHiddenFilesView()];
10841085
#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6)
10851086
// NOTE: -[NSOpenPanel runModalForDirectory:file:types:] is deprecated on

0 commit comments

Comments
 (0)