From 201a49b1c907dbdd0e517964a04ffb52d232a522 Mon Sep 17 00:00:00 2001 From: Damjan Date: Sun, 8 Feb 2026 13:11:08 +0100 Subject: [PATCH] Fix autocomplete popup closing immediately on first line. --- common/scintilla_tricks.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index 6e8f3f4971..868ef2d388 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -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(); + } ); } }