retain selection for non-partial selection

successfully retains initial text selection after stylizing, if the text selection does not span multiple nodes.