From 7d1ce9dba7f58f5ba7b127514f07d74a69a02b52 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 11 Jun 2013 19:13:46 +0000 Subject: [PATCH] Corrigindo problemas no plugin rexx, iniciando implementação de script para "paste" justificado --- selection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selection.c b/selection.c index 7beb3e4..cfaf05e 100644 --- a/selection.c +++ b/selection.c @@ -236,7 +236,10 @@ gchar * v3270_get_copy(GtkWidget *widget) const char *text; g_return_val_if_fail(GTK_IS_V3270(widget),NULL); - text = update_selected_text(widget,FALSE); + text = GTK_V3270(widget)->selection.text; + + if(!text) + text = update_selected_text(widget,FALSE); if(text) return g_convert(text, -1, "UTF-8", lib3270_get_charset(GTK_V3270(widget)->host), NULL, NULL, NULL); -- libgit2 0.21.2