@@ -1761,7 +1761,7 @@ async Task<string[]> PlaySwitch(string[]? _parts = null, string jumpsto = "", st
17611761 output += task [ 0 ] ;
17621762 ConsoleText = output ;
17631763 }
1764- ifmany = lines . Count ;
1764+ ifmany = everythingafter . Count ;
17651765 isEZText = false ;
17661766 }
17671767 break ;
@@ -3232,6 +3232,7 @@ async Task<Var> VarManipulation(Var var, string[] parts, int index)
32323232 {
32333233 string [ ] strings = getString_value ( parts , index + 1 ) ;
32343234 var . Change ( mid , strings [ 0 ] ) ;
3235+ string a = var . Value ;
32353236 }
32363237 else
32373238 {
@@ -5855,21 +5856,28 @@ public RichTextBox ScrollToEnd(bool scrollToEnd, Color? output = null, Color? er
58555856 /// <param name="newLine">Automatic Newline </param>
58565857 public void AddText ( string text , bool error = false , RichTextBox ? control = null , bool ? newLine = true )
58575858 {
5858- text = newLine == true ? text + Environment . NewLine : text ;
5859- ConsoleText += text ;
5860- RichConsole = control != null ? control : RichConsole ;
5861- if ( error ) Errors . Add ( text ) ;
5862- if ( RichConsole != null )
5859+ try
58635860 {
5864- if ( RichConsole . Text . Length + 100 > RichConsole . MaxLength )
5861+ text = newLine == true ? text + Environment . NewLine : text ;
5862+ ConsoleText += text ;
5863+ RichConsole = control != null ? control : RichConsole ;
5864+ if ( error ) Errors . Add ( text ) ;
5865+ if ( RichConsole != null )
58655866 {
5866- RichConsole . Text = "" ;
5867+ if ( RichConsole . Text . Length + 100 > RichConsole . MaxLength )
5868+ {
5869+ RichConsole . Text = "" ;
5870+ }
5871+ RichConsole . SelectionStart = RichConsole . TextLength ;
5872+ RichConsole . SelectionLength = 0 ;
5873+ RichConsole . SelectionColor = error ? errorColor : normalColor ;
5874+ RichConsole . AppendText ( text ) ;
5875+ RichConsole . SelectionColor = RichConsole . ForeColor ;
58675876 }
5868- RichConsole . SelectionStart = RichConsole . TextLength ;
5869- RichConsole . SelectionLength = 0 ;
5870- RichConsole . SelectionColor = error ? errorColor : normalColor ;
5871- RichConsole . AppendText ( text ) ;
5872- RichConsole . SelectionColor = RichConsole . ForeColor ;
5877+ }
5878+ catch
5879+ {
5880+
58735881 }
58745882 }
58755883 /// <summary>
0 commit comments