Fixes character rollback, counting lines, columns.