Skip to content

Commit

Permalink
fix: crash when run test
Browse files Browse the repository at this point in the history
  • Loading branch information
r-plus committed Oct 3, 2021
1 parent 6589af0 commit 036cb77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion XVim2/UnitTest/XVimTester.m
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ - (void)runTest
_doOpenIn_NewWindow_withWorkspaceTabController:XVimLastActiveWorkspaceTabController()
documentURL:doc
usingBlock:^(IDEEditorContext* context) {
[context openEditorOpenSpecifier:spec updateHistory:NO];
[IDEEditorAreaClass() _openEditorOpenSpecifier:spec editorContext:context options:nil];
}];

// Close NSWindow to make test run properly
Expand Down
1 change: 1 addition & 0 deletions XVim2/Xcode/XcodeUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ static inline Class DVTDocumentLocationClass() { return NSClassFromString(@"DVTD
static inline Class IDEWorkspaceWindowClass() { return NSClassFromString(@"IDEWorkspaceWindow"); }
static inline Class DVTTextPreferencesClass() { return NSClassFromString(@"DVTTextPreferences"); }
static inline Class IDEEditorCoordinatorClass() { return NSClassFromString(@"IDEEditorCoordinator"); }
static inline Class IDEEditorAreaClass() { return NSClassFromString(@"IDEEditorArea"); }
1 change: 1 addition & 0 deletions XVim2/XcodeHeader/IDEKit/IDEEditorArea.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
+ (BOOL)automaticallyNotifiesObserversOfLastActiveEditorContext;
+ (id)keyPathsForValuesAffectingLastActiveEditorAreaSplit;
+ (BOOL)_newEditorsHaveEmptyContent;
+ (BOOL)_openEditorOpenSpecifier:(id)arg1 editorContext:(id)arg2 options:(id)arg3;
//- (void).cxx_destruct;
@property BOOL isRestoringState; // @synthesize isRestoringState=_isRestoringState;
@property long long maximizedState; // @synthesize maximizedState=_maximizedState;
Expand Down

0 comments on commit 036cb77

Please sign in to comment.