Multiple selections work great when using ctrl+click-drag to select, but don't work with ctrl+double-click.
Each ctrl+double-click action clears the existing selection before selecting the word.
I think it would be really useful to allow ctrl+double-click to add to a multiple selection.. I'd love to just ctrl+double-click a few variables in my code and start typing to rename them all.
I looked into the code a bit and found that simply commenting out the call to SetEmptySelection() in Editor::ButtonDown() seems to have the result I'm looking for. Though, I'm not sure if that causes any side-effects.
The line I removed was Editor.cxx:5624 in the Scintilla 2.02 release. It would be Editor.cxx:5640 in mainline CVS (Editor.cxx file revision 1.505).
Log in to post a comment.