diff --git a/gnucash/register/register-gnome/completioncell-gnome.c b/gnucash/register/register-gnome/completioncell-gnome.c index 6136200854..75ed61d2e2 100644 --- a/gnucash/register/register-gnome/completioncell-gnome.c +++ b/gnucash/register/register-gnome/completioncell-gnome.c @@ -670,7 +670,9 @@ gnc_completion_cell_modify_verify (BasicCell* bcell, if (change == NULL || *cursor_position < bcell->value_chars) *start_selection = *end_selection = *cursor_position; - populate_list_store (cell, newval); + gchar *start_of_text = g_utf8_substring (newval, 0, *cursor_position); + populate_list_store (cell, start_of_text); + g_free (start_of_text); if (g_strcmp0 (newval, "") == 0) {