Skip to content

Commit

Permalink
fix crash bug caused by mono completion plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Dec 26, 2016
1 parent b230dd5 commit fac6434
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file modified Assets/uREPL/Examples/Scenes/Single Line.unity
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/uREPL/Scripts/Completions/MonoCompletion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ private CompletionInfo[] GetCustomCompletions(string input, string codeAddedPrev
isComplemented = true;
}

// completion inner parenthesis (2)
index = GetPosIfInsideBracket(input, "[", "]");
if (!isComplemented && index != -1) {
input = input.Substring(index);
result = Evaluator.GetCompletions(codeAddedPreviously + input, out prefix);
isComplemented = true;
}

// otherwise
if (!isComplemented) {
result = Evaluator.GetCompletions(codeAddedPreviously + input, out prefix);
Expand Down

0 comments on commit fac6434

Please sign in to comment.