mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 01:32:25 +00:00
Fix indentation after Richard B's patch in rev 1.137 [r3409].
[originally from svn r4241]
[r3409 == 7798a59987
]
This commit is contained in:
parent
f5a7d348cd
commit
2ff7b4385f
55
unix/pterm.c
55
unix/pterm.c
@ -1591,34 +1591,35 @@ void selection_received(GtkWidget *widget, GtkSelectionData *seldata,
|
|||||||
charset = CS_ISO8859_1;
|
charset = CS_ISO8859_1;
|
||||||
free_required = 1;
|
free_required = 1;
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* Convert COMPOUND_TEXT into UTF-8.
|
* Convert COMPOUND_TEXT into UTF-8.
|
||||||
*/
|
*/
|
||||||
if (seldata->type == compound_text_atom) {
|
if (seldata->type == compound_text_atom) {
|
||||||
tp.value = seldata->data;
|
tp.value = seldata->data;
|
||||||
tp.encoding = (Atom) seldata->type;
|
tp.encoding = (Atom) seldata->type;
|
||||||
tp.format = seldata->format;
|
tp.format = seldata->format;
|
||||||
tp.nitems = seldata->length;
|
tp.nitems = seldata->length;
|
||||||
ret = Xutf8TextPropertyToTextList(GDK_DISPLAY(), &tp, &list, &count);
|
ret = Xutf8TextPropertyToTextList(GDK_DISPLAY(), &tp,
|
||||||
if (ret != 0 || count != 1) {
|
&list, &count);
|
||||||
/*
|
if (ret != 0 || count != 1) {
|
||||||
* Compound text failed; fall back to STRING.
|
/*
|
||||||
*/
|
* Compound text failed; fall back to STRING.
|
||||||
gtk_selection_convert(inst->area, GDK_SELECTION_PRIMARY,
|
*/
|
||||||
GDK_SELECTION_TYPE_STRING,
|
gtk_selection_convert(inst->area, GDK_SELECTION_PRIMARY,
|
||||||
inst->input_event_time);
|
GDK_SELECTION_TYPE_STRING,
|
||||||
return;
|
inst->input_event_time);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
text = list[0];
|
||||||
|
length = strlen(list[0]);
|
||||||
|
charset = CS_UTF8;
|
||||||
|
free_list_required = 1;
|
||||||
|
} else {
|
||||||
|
text = (char *)seldata->data;
|
||||||
|
length = seldata->length;
|
||||||
|
charset = (seldata->type == utf8_string_atom ?
|
||||||
|
CS_UTF8 : inst->ucsdata.line_codepage);
|
||||||
}
|
}
|
||||||
text = list[0];
|
|
||||||
length = strlen(list[0]);
|
|
||||||
charset = CS_UTF8;
|
|
||||||
free_list_required = 1;
|
|
||||||
} else {
|
|
||||||
text = (char *)seldata->data;
|
|
||||||
length = seldata->length;
|
|
||||||
charset = (seldata->type == utf8_string_atom ?
|
|
||||||
CS_UTF8 : inst->ucsdata.line_codepage);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inst->pastein_data)
|
if (inst->pastein_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user