From 4c9b193b45a78d0e15de5273143f559a74f6be06 Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 24 Sep 2013 17:03:19 -0400 Subject: [PATCH] Fix tab completion with utf8 completion char Closes #738 --- src/fe-gtk/fkeys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c index 146804d0..beacd532 100644 --- a/src/fe-gtk/fkeys.c +++ b/src/fe-gtk/fkeys.c @@ -1499,7 +1499,7 @@ key_action_tab_comp (GtkWidget *t, GdkEventKey *entry, char *d1, char *d2, cursor_pos = g_utf8_pointer_to_offset(text, ch); if (cursor_pos && (g_utf8_get_char_validated(ch, -1) == ':' || g_utf8_get_char_validated(ch, -1) == ',' || - g_utf8_get_char_validated(ch, -1) == prefs.hex_completion_suffix[0])) + g_utf8_get_char_validated (ch, -1) == g_utf8_get_char_validated (prefs.hex_completion_suffix, -1))) { skip_len++; }