Created
October 21, 2014 11:09
-
-
Save damian0815/61cc3703ad2eeda6270d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/XVim/DVTSourceTextViewHook.m b/XVim/DVTSourceTextViewHook.m | |
index 622fac8..a20f02a 100644 | |
--- a/XVim/DVTSourceTextViewHook.m | |
+++ b/XVim/DVTSourceTextViewHook.m | |
@@ -266,7 +266,7 @@ - (void)_drawInsertionPointInRect:(NSRect)aRect color:(NSColor*)aColor{ | |
DVTSourceTextView *base = (DVTSourceTextView*)self; | |
XVimWindow* window = [base xvimWindow]; | |
TRACE_LOG(@"_drawInsertionPointInRect"); | |
- [base drawRect:[base visibleRect]]; | |
+ //[base drawRect:[base visibleRect]]; | |
if( [[[window currentEvaluator] class] isSubclassOfClass:[XVimInsertEvaluator class]]){ | |
// Use original behavior when insert mode. | |
[base _drawInsertionPointInRect_:aRect color:aColor]; | |
@@ -289,7 +289,7 @@ - (void)drawInsertionPointInRect:(NSRect)rect color:(NSColor *)color turnedOn:(B | |
if( [[[XVim instance] options] blinkcursor] ){ | |
if(!flag){ | |
// Clear caret | |
- [base drawRect:[base visibleRect]]; | |
+ //[base drawRect:[base visibleRect]]; | |
} | |
// Call original(This eventually calls _drawInsertionPointInRect:color: if flag is YES) | |
[base drawInsertionPointInRect_:rect color:color turnedOn:flag]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment