editor: Optimize selection overlap checking (#41281)

Replace the binary search approach with a more efficient partition_point
method for checking selection overlaps. This eliminates the need to
collect and sort selection ranges separately, reducing memory allocation
and improving performance when handling multiple selections.

Release Notes:

- N/A

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
73bd12ebbeXiaobo Liu committed on 10/28/2025, 6:40:38 AM· committed by GitHubparentcc829e7
1 file changedLine totals unavailable