Avoid nag confirmation in scintilla

If we need to confirm abandoning changes, we need to do it in the dialog
where we check for dialog changes.
This commit is contained in:
Seth Hillbrand 2021-01-24 12:31:04 -08:00
parent 321c9f81af
commit 02f91c52a0
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent )
m_te->AutoCompCancel();
m_suppressAutocomplete = true; // Don't run autocomplete again on the next char...
}
else if( IsOK( m_te->GetParent(), _( "Cancel changes?" ) ) )
else
{
aEvent.Skip();
}