Fix cursor position when deleting selected text

This commit is contained in:
Robert Fewell 2023-06-19 09:34:12 +01:00
parent b331ec974e
commit ed2b92c428

View File

@ -666,6 +666,10 @@ gnc_completion_cell_modify_verify (BasicCell* bcell,
box->stop_searching = FALSE;
}
// Are were deleting or inserting in the middle.
if (change == NULL || *cursor_position < bcell->value_chars)
*start_selection = *end_selection = *cursor_position;
populate_list_store (cell, newval);
if (g_strcmp0 (newval, "") == 0)