Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: GitHub noreply@github.com Date: Fri, 09 Aug 2024 22:44:28 UTC Commit: 4fadf8e5d5f123b1bcf5e34d9d9925d63c6fd382 https://github.com/geany/geany/commit/4fadf8e5d5f123b1bcf5e34d9d9925d63c6fd3...
Log Message: ----------- Merge pull request #3560 from techee/cancel_popups
Hide autocompletion and calltip popups when code scrolled
Modified Paths: -------------- src/editor.c
Modified: src/editor.c 6 lines changed, 6 insertions(+), 0 deletions(-) =================================================================== @@ -500,6 +500,12 @@ static void on_update_ui(GeanyEditor *editor, G_GNUC_UNUSED SCNotification *nt) ScintillaObject *sci = editor->sci; gint pos = sci_get_current_position(sci);
+ if (nt->updated & (SC_UPDATE_H_SCROLL | SC_UPDATE_V_SCROLL)) + { + SSM(sci, SCI_CALLTIPCANCEL, 0, 0); + SSM(sci, SCI_AUTOCCANCEL, 0, 0); + } + /* since Scintilla 2.24, SCN_UPDATEUI is also sent on scrolling though we don't need to handle * this and so ignore every SCN_UPDATEUI events except for content and selection changes */ if (! (nt->updated & SC_UPDATE_CONTENT) && ! (nt->updated & SC_UPDATE_SELECTION))
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).