fix #22470: Shift+Ctrl+Right to extend selection doesn't work if existing selection extends to end of measure