Fix tab completion with utf8 completion char

Closes #738
This commit is contained in:
TingPing 2013-09-24 17:03:19 -04:00
parent 130be78dbb
commit 4c9b193b45
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}