Fixes deleting formatted text leaves formatting in place