From 9b5de3c96b18d5cac297aa40c45b69ee05dcb807 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Thu, 3 Feb 2011 17:14:48 +0300 Subject: [PATCH] direct commit: utf8 fixup Signed-off-by: Ilia Maslakov --- src/editor/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/edit.c b/src/editor/edit.c index d8d339366..67faa3309 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -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; -- 2.11.4.GIT