fix #35841: slur and tie should not be treated as similar for selection