Manage delete and insert with multi chars
Currently if you delete or insert more than one char with one action this does not work properly.
This could happen when using ctrl+v, ctrl+x, UI buttons (e.g., bold, italic), selection delete, etc.
Edited by Ludovic Le Frioux