:bug: transact correctly when there's selected text