am 825e2bbd: Fix a bug when deleting the last char

* commit '825e2bbd910cce3055a4ca808d3744bc0b2cedda':
  Fix a bug when deleting the last char