Skip to content
This repository was archived by the owner on Feb 21, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix a bug when trigger line in not just trigger.
To prevent bug like this('///' is trigger):

///static NSArray *array;

int main (int argc, const char * argv[])
  • Loading branch information
AfirSraftGarrier authored Jul 17, 2016
commit e42c5b5593b4e3fab89cdc0b0d0962cd6248e1cc
5 changes: 5 additions & 0 deletions VVDocumenter-Xcode/VVDocumenterManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ - (void) textStorageDidChange:(NSNotification *)noti {
return;
}

// Current line is not just triggerString, so ignore this
if (currentLineResult.range.location + currentLineResult.range.length + 1 != nextLineResult.range.location) {
return;
}

//Get a @"///" (triggerString) typed in by user. Do work!
self.prefixTyped = NO;

Expand Down