direct commit: utf8 fixup

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
Ilia Maslakov 2011-02-03 17:14:48 +03:00
parent cca5fac0e9
commit 9b5de3c96b

View File

@ -1872,7 +1872,7 @@ edit_get_prev_utf (WEdit * edit, long byte_index, int *char_width)
if (str != buf)
str = g_utf8_find_prev_char (buf, str);
if (res < 0 || str == NULL)
if (str == NULL)
{
*char_width = 0;
return 0;