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:
Emmanuele Bassi 2014-01-24 18:49:18 +00:00
parent c2324849fc
commit 0dc4986f66

View File

@ -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);