Skip to content

Commit

Permalink
Fix the bias of deserialized selection sets
Browse files Browse the repository at this point in the history
Fixes #224

Co-Authored-By: Nathan Sobo <[email protected]>
  • Loading branch information
maxbrunsfeld and nathansobo committed Nov 22, 2021
1 parent cfe6103 commit 612b440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/language/src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 612b440

Please sign in to comment.