aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorColomban Wendling <unknown>2024-10-26 08:38:09 +1100
committerColomban Wendling <unknown>2024-10-26 08:38:09 +1100
commit0ddc57c2a0269a4d4c89042b680f5a1178cb7efa (patch)
tree679276ef434df963bb8092125182a3396868f929 /gtk
parentf409bd64bd33a81c91ecad067174da018d6b6351 (diff)
downloadscintilla-mirror-0ddc57c2a0269a4d4c89042b680f5a1178cb7efa.tar.gz
On GTK, allow middle click to insert multiple times within a document.
https://github.com/geany/geany/issues/2629
Diffstat (limited to 'gtk')
-rwxr-xr-xgtk/ScintillaGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index b40b6547d..38e0d0376 100755
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1502,8 +1502,8 @@ void ScintillaGTK::PrimaryClearSelection(GtkClipboard *clip, gpointer pSci) {
void ScintillaGTK::ClaimSelection() {
// X Windows has a 'primary selection' as well as the clipboard.
// Whenever the user selects some text, we become the primary selection
- ClearPrimarySelection();
if (!sel.Empty()) {
+ ClearPrimarySelection();
if (gtk_clipboard_set_with_data(
gtk_clipboard_get(GDK_SELECTION_PRIMARY),
clipboardCopyTargets, nClipboardCopyTargets,