Fix the bias of deserialized selection sets

Fixes #224

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-11-22 14:14:48 -08:00
co-authored by Nathan Sobo
parent cfe6103daf
commit 612b4404a9
+1 -1
View File
@@ -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,