Fix autocomplete popup closing immediately on first line.

This commit is contained in:
Damjan
2026-02-08 13:11:08 +01:00
committed by Jeff Young
parent f23d3df3ca
commit 201a49b1c9
+6 -4
View File
@@ -232,10 +232,12 @@ void SCINTILLA_TRICKS::onModified( wxStyledTextEvent& aEvent )
{
// If the font is larger than the height of a single-line text box we can get issues
// with the text disappearing every other character due to dodgy scrolling behaviour.
CallAfter( [this]()
{
m_te->ScrollToStart();
} );
CallAfter(
[this]()
{
if( !m_te->AutoCompActive() )
m_te->ScrollToStart();
} );
}
}