From 7c231b23613819e0e82ee6fdbb26ed7a019ef601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Tue, 9 Jan 2007 23:53:25 +0000 Subject: [PATCH] Try to fix paste problems on Windows (should close #1628951). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1172 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ src/callbacks.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c7426e0c..95225b71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-09 Enrico Tröger + + * src/callbacks.c: + Try to fix paste problems on Windows (should close #1628951). + + 2007-01-09 Nick Treleaven * src/utils.c, src/sci_cb.c, src/sciwrappers.c: diff --git a/src/callbacks.c b/src/callbacks.c index caffdc49..f2cabf58 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -383,8 +383,7 @@ on_paste1_activate (GtkMenuItem *menuitem, gchar *content = gtk_clipboard_wait_for_text(gtk_clipboard_get(GDK_NONE)); if (content != NULL) { - sci_insert_text(doc_list[idx].sci, - sci_get_current_position(doc_list[idx].sci), content); + sci_replace_sel(doc_list[idx].sci, content); g_free(content); } }