added multi-caret support for un/wrap