This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
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.3 " ) ]
36
+ [ assembly: AssemblyVersion ( "1.3.6.1 " ) ]
37
37
#endif
Original file line number Diff line number Diff line change 6
6
using System . Windows . Media . Animation ;
7
7
using ICSharpCode . AvalonEdit ;
8
8
using ICSharpCode . AvalonEdit . Editing ;
9
- using ICSharpCode . AvalonEdit . Highlighting ;
10
9
using ICSharpCode . AvalonEdit . Rendering ;
11
10
using SourcepawnCondenser . SourcemodDefinition ;
12
11
@@ -378,21 +377,29 @@ private bool ISAC_EvaluateKeyDownEvent(Key k)
378
377
379
378
var length = startOffset - endOffset ;
380
379
string replaceString ;
380
+ var setCaret = false ;
381
381
if ( AC_IsFuncC )
382
382
{
383
383
replaceString = ( ( ACNode ) AutoCompleteBox . SelectedItem ) . EntryName ;
384
384
if ( acEntrys [ AutoCompleteBox . SelectedIndex ] . IsExecuteable )
385
+ {
385
386
replaceString += "(" + ( Program . OptionsObject . Editor_AutoCloseBrackets ? ")" : "" ) ;
387
+ setCaret = true ;
388
+ }
386
389
}
387
390
else
388
391
{
389
392
replaceString = ( ( ISNode ) MethodAutoCompleteBox . SelectedItem ) . EntryName ;
390
393
if ( isEntrys [ MethodAutoCompleteBox . SelectedIndex ] . IsExecuteable )
394
+ {
391
395
replaceString += "(" + ( Program . OptionsObject . Editor_AutoCloseBrackets ? ")" : "" ) ;
396
+ setCaret = true ;
397
+ }
392
398
}
393
399
394
400
editor . Document . Replace ( endOffset , length + 1 , replaceString ) ;
395
- editor . CaretOffset -= 1 ;
401
+ if ( setCaret )
402
+ editor . CaretOffset -= 1 ;
396
403
return true ;
397
404
}
398
405
case Key . Up :
You can’t perform that action at this time.
0 commit comments