Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 4a5e2eb

Browse files
committed
Fix #18 - Add Closing Brackets for methodmaps functions
1 parent ecb4cb2 commit 4a5e2eb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

App/AssemblyInfo1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
#if (DEBUG)
3434
[assembly: AssemblyVersion("1.12.*")]
3535
#else
36-
[assembly: AssemblyVersion("1.3.5.2")]
36+
[assembly: AssemblyVersion("1.3.5.3")]
3737
#endif

UI/Components/IntelliSenseController.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,22 +376,23 @@ private bool ISAC_EvaluateKeyDownEvent(Key k)
376376
endOffset = i;
377377
}
378378

379-
var length = startOffset - endOffset + 1;
379+
var length = startOffset - endOffset;
380380
string replaceString;
381381
if (AC_IsFuncC)
382382
{
383383
replaceString = ((ACNode) AutoCompleteBox.SelectedItem).EntryName;
384384
if (acEntrys[AutoCompleteBox.SelectedIndex].IsExecuteable)
385-
replaceString = replaceString + "(";
385+
replaceString += "(" + (Program.OptionsObject.Editor_AutoCloseBrackets ? ")" : "");
386386
}
387387
else
388388
{
389389
replaceString = ((ISNode) MethodAutoCompleteBox.SelectedItem).EntryName;
390390
if (isEntrys[MethodAutoCompleteBox.SelectedIndex].IsExecuteable)
391-
replaceString = replaceString + "(";
391+
replaceString += "(" + (Program.OptionsObject.Editor_AutoCloseBrackets ? ")" : "");
392392
}
393393

394-
editor.Document.Replace(endOffset, length, replaceString);
394+
editor.Document.Replace(endOffset, length+1, replaceString);
395+
editor.CaretOffset -= 1;
395396
return true;
396397
}
397398
case Key.Up:

0 commit comments

Comments
 (0)