From cba61999582924c6922a67c8ebe7530982abb1ee Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Tue, 9 Dec 2008 11:45:23 +0000 Subject: [PATCH] Cosmetic. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4957 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-entry.c | 11 ++++++----- 1 file 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; }