(edit_collect_completions): str_convert_to_display() never returns NULL.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-01-21 11:53:10 +03:00
parent c2e2a33358
commit 454e23d48f

View File

@ -1308,9 +1308,9 @@ edit_collect_completions (WEdit * edit, off_t word_start, gsize word_len,
#ifdef HAVE_CHARSET
{
GString *recoded;
recoded = str_convert_to_display (temp->str);
if (recoded && recoded->len)
recoded = str_convert_to_display (temp->str);
if (recoded->len != 0)
g_string_assign (temp, recoded->str);
g_string_free (recoded, TRUE);