Commit 7d1ce9dba7f58f5ba7b127514f07d74a69a02b52
1 parent
37e8f615
Exists in
master
and in
1 other branch
Corrigindo problemas no plugin rexx, iniciando implementação de script para "paste" justificado
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
selection.c
@@ -236,7 +236,10 @@ gchar * v3270_get_copy(GtkWidget *widget) | @@ -236,7 +236,10 @@ gchar * v3270_get_copy(GtkWidget *widget) | ||
236 | const char *text; | 236 | const char *text; |
237 | g_return_val_if_fail(GTK_IS_V3270(widget),NULL); | 237 | g_return_val_if_fail(GTK_IS_V3270(widget),NULL); |
238 | 238 | ||
239 | - text = update_selected_text(widget,FALSE); | 239 | + text = GTK_V3270(widget)->selection.text; |
240 | + | ||
241 | + if(!text) | ||
242 | + text = update_selected_text(widget,FALSE); | ||
240 | 243 | ||
241 | if(text) | 244 | if(text) |
242 | return g_convert(text, -1, "UTF-8", lib3270_get_charset(GTK_V3270(widget)->host), NULL, NULL, NULL); | 245 | return g_convert(text, -1, "UTF-8", lib3270_get_charset(GTK_V3270(widget)->host), NULL, NULL, NULL); |