Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 23 Mar 2025 09:16:41 UTC Commit: 4c5363c7b0638dfa6546fd1b5c0c09ddbae960ff https://github.com/geany/geany/commit/4c5363c7b0638dfa6546fd1b5c0c09ddbae960...
Log Message: ----------- Allow pasting and autocompletion for multiple cursors
Without this, when having a column mode caret, paste only inserts the text into the primary cursor position but not to all of them.
Similarly, without the patch, autocomplete only works for the primary cursor position only.
Fixes #625.
Closes #2328.
Modified Paths: -------------- src/editor.c
Modified: src/editor.c 6 lines changed, 6 insertions(+), 0 deletions(-) =================================================================== @@ -4965,6 +4965,12 @@ static ScintillaObject *create_new_sci(GeanyEditor *editor) /* input method editor's candidate window behaviour */ SSM(sci, SCI_SETIMEINTERACTION, editor_prefs.ime_interaction, 0);
+ /* paste to all cursor positions, not just the primary one */ + SSM(sci, SCI_SETMULTIPASTE, SC_MULTIPASTE_EACH, 0); + + /* perform autocomplete for all cursor positions, not just the primary one */ + SSM(sci, SCI_AUTOCSETMULTI, SC_MULTIAUTOC_EACH , 0); + /* only connect signals if this is for the document notebook, not split window */ if (editor->sci == NULL) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).