diff --git a/renderdocui/Windows/Dialogs/PythonShell.cs b/renderdocui/Windows/Dialogs/PythonShell.cs index a7e63071a..d80741135 100644 --- a/renderdocui/Windows/Dialogs/PythonShell.cs +++ b/renderdocui/Windows/Dialogs/PythonShell.cs @@ -63,8 +63,6 @@ namespace renderdocui.Windows.Dialogs scriptEditor.KeyDown += new KeyEventHandler(scriptEditor_KeyDown); scriptEditor.TextChanged += new EventHandler(scriptEditor_TextChanged); - newScript.PerformClick(); - scriptEditor.Scrolling.HorizontalWidth = 1; const uint SCI_SETSCROLLWIDTHTRACKING = 2516; @@ -78,6 +76,8 @@ namespace renderdocui.Windows.Dialogs mode_Changed(shellMode, null); + newScript.PerformClick(); + clearCmd_Click(null, null); EnableButtons(true);