Fix tabs-to-spaces an spaces-to-tabs with the selection refactor