Better fix for not selecting all of netlist.

This commit is contained in:
Jeff Young 2022-12-14 14:13:25 +00:00
parent 13d9b061ee
commit 77998d7c51
2 changed files with 1 additions and 2 deletions

View File

@ -354,7 +354,7 @@ static void selectAllInTextCtrls( wxWindowList& children )
{ {
// Respect an existing selection // Respect an existing selection
} }
else else if( !scintilla->GetText().Contains( wxT( "\n") ) )
{ {
scintilla->SelectAll(); scintilla->SelectAll();
} }

View File

@ -1621,7 +1621,6 @@ void SIM_PLOT_FRAME::onShowNetlist( wxCommandEvent& event )
textCtrl->SetWrapMode( wxSTC_WRAP_WORD ); textCtrl->SetWrapMode( wxSTC_WRAP_WORD );
textCtrl->SetText( source ); textCtrl->SetText( source );
textCtrl->ClearSelections();
textCtrl->SetLexer( wxSTC_LEX_SPICE ); textCtrl->SetLexer( wxSTC_LEX_SPICE );