Fix the bias of deserialized selection sets

Max Brunsfeld and Nathan Sobo created

Fixes #224

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Change summary

crates/language/src/proto.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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,