use selected range instead of selection start and end

Signed-off-by: Florian Thienel <florian@thienel.org>
8 files changed