[PATCH] Handle text deletion better with window point cache