summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-12-09 11:45:23 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-12-09 11:45:23 +0000
commitcba61999582924c6922a67c8ebe7530982abb1ee (patch)
tree47146f1c4dfcc6ae682df9d8784e609ad974b1c5 /src/fe-text
parent48d0135d3edf80a042110d0940656415c758bc63 (diff)
downloadirssi-cba61999582924c6922a67c8ebe7530982abb1ee.zip
Cosmetic.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4957 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-entry.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c
index 4f56d76d..9ed21cb3 100644
--- a/src/fe-text/gui-entry.c
+++ b/src/fe-text/gui-entry.c
@@ -519,11 +519,12 @@ char *gui_entry_get_cutbuffer(GUI_ENTRY_REC *entry)
buf = g_malloc(entry->cutbuffer_len*6 + 1);
if (entry->utf8)
utf16_to_utf8(entry->cutbuffer, buf);
- else if (term_type == TERM_TYPE_BIG5) {
- unichars_to_big5(entry->cutbuffer, buf);
- } else {
- for (i = 0; i <= entry->cutbuffer_len; i++)
- buf[i] = entry->cutbuffer[i];
+ else {
+ if (term_type == TERM_TYPE_BIG5)
+ unichars_to_big5(entry->cutbuffer, buf);
+ else
+ for (i = 0; i <= entry->cutbuffer_len; i++)
+ buf[i] = entry->cutbuffer[i];
}
return buf;
}