Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add comment for who want hide status line

  • Loading branch information...
commit 379393b21f55e947e4cd683185b2f0dd2bb58ba1 1 parent 03c947f
@JugglerShu JugglerShu authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 XVim/IDEEditorHook.m
View
5 XVim/IDEEditorHook.m
@@ -20,11 +20,13 @@ +(void)hook{
[Hooker hookMethod:@selector(didSetupEditor) ofClass:c withMethod:class_getInstanceMethod([self class], @selector(didSetupEditor) ) keepingOriginalWith:@selector(didSetupEditor_)];
}
-
- (void)didSetupEditor{
+
IDEEditor* editor = (IDEEditor*)self;
[editor didSetupEditor_];
+ // If you do not like status line comment out folloing.
+ // ---- FROM HERE ----
NSView* container = nil;
if( [NSStringFromClass([editor class]) isEqualToString:@"IDESourceCodeComparisonEditor"] ){
container = [(IDESourceCodeComparisonEditor*)editor layoutView];
@@ -53,5 +55,6 @@ - (void)didSetupEditor{
[editor addObserver:status forKeyPath:@"document" options:NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew context:nil];
}
}
+ //---- TO HERE ----
}
@end
Please sign in to comment.
Something went wrong with that request. Please try again.