@@ -76,7 +76,7 @@ - (void) textStorageDidChange:(NSNotification *)noti {
7676
7777 if ([[noti object ] isKindOfClass: [NSTextView class ]]) {
7878 NSTextView *textView = (NSTextView *)[noti object ];
79- VVTextResult *currentLineResult = [textView textResultOfCurrentLine ];
79+ VVTextResult *currentLineResult = [textView vv_textResultOfCurrentLine ];
8080 if (currentLineResult) {
8181
8282 // Check if there is a "//" already typed in. We do this to solve the undo issue
@@ -91,14 +91,14 @@ - (void) textStorageDidChange:(NSNotification *)noti {
9191 }
9292
9393 if ([currentLineResult.string vv_matchesPatternRegexPattern: [NSString stringWithFormat: @" ^\\ s*%@ $" ,[NSRegularExpression escapedPatternForString: triggerString]]] && self.prefixTyped ) {
94- VVTextResult *previousLineResult = [textView textResultOfPreviousLine ];
94+ VVTextResult *previousLineResult = [textView vv_textResultOfPreviousLine ];
9595
9696 // Previous line is a documentation comment, so ignore this
9797 if ([previousLineResult.string vv_matchesPatternRegexPattern: @" ^\\ s*///" ]) {
9898 return ;
9999 }
100100
101- VVTextResult *nextLineResult = [textView textResultOfNextLine ];
101+ VVTextResult *nextLineResult = [textView vv_textResultOfNextLine ];
102102
103103 // Next line is a documentation comment, so ignore this
104104 if ([nextLineResult.string vv_matchesPatternRegexPattern: @" ^\\ s*///" ]) {
@@ -112,8 +112,8 @@ - (void) textStorageDidChange:(NSNotification *)noti {
112112
113113 // Decide which is closer to the cursor. A semicolon or a half brace.
114114 // We just want to document the next valid line.
115- VVTextResult *resultUntilSemiColon = [textView textResultUntilNextString :@" ;" ];
116- VVTextResult *resultUntilBrace = [textView textResultUntilNextString :@" {" ];
115+ VVTextResult *resultUntilSemiColon = [textView vv_textResultUntilNextString :@" ;" ];
116+ VVTextResult *resultUntilBrace = [textView vv_textResultUntilNextString :@" {" ];
117117
118118 VVTextResult *resultToDocument = nil ;
119119
@@ -132,7 +132,7 @@ - (void) textStorageDidChange:(NSNotification *)noti {
132132 }
133133
134134 if ([resultToDocument.string vv_isSwiftEnum ]) {
135- resultToDocument = [textView textResultWithPairOpenString :@" {" closeString: @" }" ];
135+ resultToDocument = [textView vv_textResultWithPairOpenString :@" {" closeString: @" }" ];
136136 }
137137
138138 VVDocumenter *doc = [[VVDocumenter alloc ] initWithCode: resultToDocument.string];
@@ -191,7 +191,7 @@ - (void) textStorageDidChange:(NSNotification *)noti {
191191 return nil ;
192192 } else if ([incomingEvent type ] == NSKeyDown && [incomingEvent keyCode ] == kKeyVCode && shouldReplace == YES ) {
193193 // Select input line and the define code block.
194- NSRange r = [textView textResultUntilNextString :@" ;" ].range ;
194+ NSRange r = [textView vv_textResultUntilNextString :@" ;" ].range ;
195195
196196 // NSRange r begins from the starting of enum(struct) line. Select 1 character before to include the trigger input line.
197197 [textView setSelectedRange: NSMakeRange (r.location - 1 , r.length + 1 )];
0 commit comments