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 +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3333#if ( DEBUG )
3434[ assembly: AssemblyVersion ( "1.12.*" ) ]
3535#else
36- [ assembly: AssemblyVersion ( "1.3.5.3 " ) ]
36+ [ assembly: AssemblyVersion ( "1.3.6.1 " ) ]
3737#endif
Original file line number Diff line number Diff line change 66using System . Windows . Media . Animation ;
77using ICSharpCode . AvalonEdit ;
88using ICSharpCode . AvalonEdit . Editing ;
9- using ICSharpCode . AvalonEdit . Highlighting ;
109using ICSharpCode . AvalonEdit . Rendering ;
1110using SourcepawnCondenser . SourcemodDefinition ;
1211
@@ -378,21 +377,29 @@ private bool ISAC_EvaluateKeyDownEvent(Key k)
378377
379378 var length = startOffset - endOffset ;
380379 string replaceString ;
380+ var setCaret = false ;
381381 if ( AC_IsFuncC )
382382 {
383383 replaceString = ( ( ACNode ) AutoCompleteBox . SelectedItem ) . EntryName ;
384384 if ( acEntrys [ AutoCompleteBox . SelectedIndex ] . IsExecuteable )
385+ {
385386 replaceString += "(" + ( Program . OptionsObject . Editor_AutoCloseBrackets ? ")" : "" ) ;
387+ setCaret = true ;
388+ }
386389 }
387390 else
388391 {
389392 replaceString = ( ( ISNode ) MethodAutoCompleteBox . SelectedItem ) . EntryName ;
390393 if ( isEntrys [ MethodAutoCompleteBox . SelectedIndex ] . IsExecuteable )
394+ {
391395 replaceString += "(" + ( Program . OptionsObject . Editor_AutoCloseBrackets ? ")" : "" ) ;
396+ setCaret = true ;
397+ }
392398 }
393399
394400 editor . Document . Replace ( endOffset , length + 1 , replaceString ) ;
395- editor . CaretOffset -= 1 ;
401+ if ( setCaret )
402+ editor . CaretOffset -= 1 ;
396403 return true ;
397404 }
398405 case Key . Up :
You can’t perform that action at this time.
0 commit comments