Fixup b31b52c2 which wasn't right for backward-delete-char

This commit is contained in:
Johannes Altmanninger 2020-02-09 10:23:30 +01:00
parent b31b52c272
commit 4c66e69cd9

View File

@ -1210,6 +1210,8 @@ void reader_data_t::delete_char(bool backward) {
}
size_t pos_end = pos;
if (el->position() == 0 && backward) return;
// Fake composed character sequences by continuing to delete until we delete a character of
// width at least 1.
int width;