Better fix for not selecting all of netlist.
This commit is contained in:
parent
13d9b061ee
commit
77998d7c51
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue