-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong cursor position when selecting text #1442
Comments
Works for me. |
It should be reproducible with themes using block cursor, e.g. "Dark", "Retro" etc. |
oh, block caret. Selection and display of the caret is performed by the Scintilla editing component Geany uses, please check it with Scite, the Scintilla reference editor and report upstream if not already. Note that IIUC block caret is not supported by the Scintilla maintainer, but an external implementer, and it hasn't had much love recently. |
Ok, I've created a ticket for Scintilla. SciTE doesn't support block caret at all, unfortunately. |
Looks like its deliberate, see https://sourceforge.net/p/scintilla/bugs/1924/ |
Yes, looks like so (this is the ticket I've created, by the way). There is a discussion on this topic on Google groups and I'll post my arguments for the old behavior. |
Yes thats why I put a reference to it, so people could find it easy. Let us know what the discussion decides so we can close this or not. |
Hi, I've been bit by this issue too when using another Scintilla-based editor, and I'm proposing a fix in that Scintilla ticket: https://sourceforge.net/p/scintilla/bugs/1924/ |
@AlbertoGP, FWIW you might want to make your changes to (or backport them to) Scintilla's LongTerm3 branch, since the HG tip requires bleeding edge compilers that support C++17 which was just finalized in the last couple weeks, so Scintilla-based editors you use might take a long time to get your changes if only done against HG tip. |
After some discussion of alternatives, the simplest way for Textadept was to add a local patch that undoes the block cursor selection change that happened earlier this year: In case you'd like to do the same, I've made PR #1608 to first bring your |
https://sourceforge.net/p/scintilla/bugs/1924/ |
@zufuliu was it backported to the long term 3 branch? |
@elextr not at the moment, but I think I will backported later. |
Ok, Geany still uses the LTS branch, so it will get picked up after that happens. |
Scintilla 3.10.0 is available now. |
In Geany 1.30 selecting a text with
shift
+arrow
orshift
+home
/end
leaves the last symbol under the cursor selected. For me this behavior is not apparent.For example, pressing
shift
+right arrow
leaves the cursor at the same position, while the symbol under the cursor gets selected. In the earlier versions (perhaps, 1.29) the same key combo selected the current symbol and moved the cursor to the next symbol.The text was updated successfully, but these errors were encountered: