Steps to reproduce:

  1. Open document foo.bar in Geany.
  2. Open the same document in e.g. vi and modify it.
  3. Click inside the Scintilla widget inside Geany containing foo.bar
  4. This single click selects several lines of code.

The selection below is a result of a single click:
Screenshot.2024-06-13.at.16.02.18.png (view on web)

What I think happens is that when the widget with the warning appears at the top of the window, Scintilla scrolls the text by the amount of the height of the widget and all this happens within the click handler. As the scroll happens while the click is in progress, selection is made between the start Scintilla position of the click and the end position after the scroll.

Maybe postponing the display with the warning to idle would help here.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3906@github.com>