mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix cursor position when deleting selected text
This commit is contained in:
parent
b331ec974e
commit
ed2b92c428
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user