Recalculate and reset selection when uncrustifying selected lines

Changes replacement of fragments to be done inside the textStorage
so the actual edited ranges are available for re-selection afterwards.
Merge commit 'e512292107eeb3b5e57bdb0758bc9872e12995f8'
Recalculate and reset selection when uncrustifying selected lines