Skip to content

Commit 612b440

Browse files
Fix the bias of deserialized selection sets
Fixes #224 Co-Authored-By: Nathan Sobo <nathan@zed.dev>
1 parent cfe6103 commit 612b440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/language/src/proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ pub fn deserialize_selection_set(set: proto::SelectionSet) -> SelectionSet {
280280
.into_iter()
281281
.map(|selection| {
282282
let range = (FullOffset(selection.start as usize), Bias::Left)
283-
..(FullOffset(selection.end as usize), Bias::Right);
283+
..(FullOffset(selection.end as usize), Bias::Left);
284284
let state = SelectionState {
285285
id: selection.id as usize,
286286
reversed: selection.reversed,

0 commit comments

Comments
 (0)