This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 33
33
#if ( DEBUG )
34
34
[ assembly: AssemblyVersion ( "1.12.*" ) ]
35
35
#else
36
- [ assembly: AssemblyVersion ( "1.3.5.2 " ) ]
36
+ [ assembly: AssemblyVersion ( "1.3.5.3 " ) ]
37
37
#endif
Original file line number Diff line number Diff line change @@ -376,22 +376,23 @@ private bool ISAC_EvaluateKeyDownEvent(Key k)
376
376
endOffset = i ;
377
377
}
378
378
379
- var length = startOffset - endOffset + 1 ;
379
+ var length = startOffset - endOffset ;
380
380
string replaceString ;
381
381
if ( AC_IsFuncC )
382
382
{
383
383
replaceString = ( ( ACNode ) AutoCompleteBox . SelectedItem ) . EntryName ;
384
384
if ( acEntrys [ AutoCompleteBox . SelectedIndex ] . IsExecuteable )
385
- replaceString = replaceString + "(" ;
385
+ replaceString += "(" + ( Program . OptionsObject . Editor_AutoCloseBrackets ? ")" : "" ) ;
386
386
}
387
387
else
388
388
{
389
389
replaceString = ( ( ISNode ) MethodAutoCompleteBox . SelectedItem ) . EntryName ;
390
390
if ( isEntrys [ MethodAutoCompleteBox . SelectedIndex ] . IsExecuteable )
391
- replaceString = replaceString + "(" ;
391
+ replaceString += "(" + ( Program . OptionsObject . Editor_AutoCloseBrackets ? ")" : "" ) ;
392
392
}
393
393
394
- editor . Document . Replace ( endOffset , length , replaceString ) ;
394
+ editor . Document . Replace ( endOffset , length + 1 , replaceString ) ;
395
+ editor . CaretOffset -= 1 ;
395
396
return true ;
396
397
}
397
398
case Key . Up :
You can’t perform that action at this time.
0 commit comments