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
This commit is contained in:
Enrico Tröger 2007-01-09 23:53:25 +00:00
parent 15fb502837
commit 7c231b2361
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-01-09 Enrico Tröger <enrico.troeger@uvena.de>
* src/callbacks.c:
Try to fix paste problems on Windows (should close #1628951).
2007-01-09 Nick Treleaven <nick.treleaven@btinternet.com>
* src/utils.c, src/sci_cb.c, src/sciwrappers.c:

View File

@ -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);
}
}