diff options
author | Tak <levi@unity3d.com> | 2011-03-01 17:22:14 +0300 |
---|---|---|
committer | Lluis Sanchez <slluis.devel@gmail.com> | 2011-03-04 17:59:24 +0300 |
commit | 22752c575c07dfdff6e09c1c6a4debd6481e92e1 (patch) | |
tree | a9552ffa529f8739f1395eb7a455b5942ffd41b8 /main/src/addins/CBinding | |
parent | cb06abf7fa5bd3918c9dd91973bb8b5834f4828d (diff) |
[C] Unbreak parameter suggestion.
* Gui/CTextEditorExtension.cs: Strip trailing parentheses from method name.
License: MIT/X11
Diffstat (limited to 'main/src/addins/CBinding')
-rw-r--r-- | main/src/addins/CBinding/Gui/CTextEditorExtension.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/addins/CBinding/Gui/CTextEditorExtension.cs b/main/src/addins/CBinding/Gui/CTextEditorExtension.cs index 12bb4854cb..3b872ef99a 100644 --- a/main/src/addins/CBinding/Gui/CTextEditorExtension.cs +++ b/main/src/addins/CBinding/Gui/CTextEditorExtension.cs @@ -435,6 +435,8 @@ namespace CBinding ProjectInformation info = ProjectInformationManager.Instance.Get (project); string lineText = Editor.GetLineText (Editor.Caret.Line).TrimEnd (); + if (lineText.EndsWith (completionChar.ToString (), StringComparison.Ordinal)) + lineText = lineText.Remove (lineText.Length-1).TrimEnd (); int nameStart = lineText.LastIndexOfAny (allowedChars); |