editor: Reset text model on reset
There were some reset calls missing, which resulted in wrong preedit state on input method side. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
b8b76a603f
commit
08015b6ba0
+3
-4
@@ -700,6 +700,9 @@ text_entry_commit_and_reset(struct text_entry *entry)
|
|||||||
text_entry_insert_at_cursor(entry, commit, 0, 0);
|
text_entry_insert_at_cursor(entry, commit, 0, 0);
|
||||||
free(commit);
|
free(commit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entry->serial++;
|
||||||
|
text_model_reset(entry->model, entry->serial);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -763,10 +766,6 @@ text_entry_set_cursor_position(struct text_entry *entry,
|
|||||||
&index, &trailing);
|
&index, &trailing);
|
||||||
entry->cursor = index + trailing;
|
entry->cursor = index + trailing;
|
||||||
|
|
||||||
entry->serial++;
|
|
||||||
|
|
||||||
text_model_reset(entry->model, entry->serial);
|
|
||||||
|
|
||||||
text_entry_update_layout(entry);
|
text_entry_update_layout(entry);
|
||||||
|
|
||||||
widget_schedule_redraw(entry->widget);
|
widget_schedule_redraw(entry->widget);
|
||||||
|
|||||||
Reference in New Issue
Block a user