Skip to content

Commit 3daab98

Browse files
committed
Allow directory selection in Open dialog
1 parent 3cdaa48 commit 3daab98

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)