mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
text: Fix the implementation of delete_chars()
The internal delete_text() implementation takes a start and an end position, whereas the public delete_chars() method takes a number of characters to delete starting from the current cursor position.
This commit is contained in:
parent
c2324849fc
commit
0dc4986f66
@ -6040,7 +6040,7 @@ clutter_text_delete_chars (ClutterText *self,
|
||||
|
||||
priv = self->priv;
|
||||
|
||||
clutter_text_real_delete_text (self, priv->position, n_chars);
|
||||
clutter_text_real_delete_text (self, priv->position, priv->position + n_chars);
|
||||
|
||||
if (priv->position > 0)
|
||||
clutter_text_set_cursor_position (self, priv->position - n_chars);
|
||||
|
Loading…
Reference in New Issue
Block a user