From 612b4404a9bc257c0fa8d14265f4218c62c532eb Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 22 Nov 2021 14:14:48 -0800 Subject: [PATCH] Fix the bias of deserialized selection sets Fixes #224 Co-Authored-By: Nathan Sobo --- crates/language/src/proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/language/src/proto.rs b/crates/language/src/proto.rs index 6a259e0726..def2172319 100644 --- a/crates/language/src/proto.rs +++ b/crates/language/src/proto.rs @@ -280,7 +280,7 @@ pub fn deserialize_selection_set(set: proto::SelectionSet) -> SelectionSet { .into_iter() .map(|selection| { let range = (FullOffset(selection.start as usize), Bias::Left) - ..(FullOffset(selection.end as usize), Bias::Right); + ..(FullOffset(selection.end as usize), Bias::Left); let state = SelectionState { id: selection.id as usize, reversed: selection.reversed,