Fix the bias of deserialized selection sets
Fixes #224 Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
cfe6103daf
commit
612b4404a9
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ pub fn deserialize_selection_set(set: proto::SelectionSet) -> SelectionSet {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|selection| {
|
.map(|selection| {
|
||||||
let range = (FullOffset(selection.start as usize), Bias::Left)
|
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 {
|
let state = SelectionState {
|
||||||
id: selection.id as usize,
|
id: selection.id as usize,
|
||||||
reversed: selection.reversed,
|
reversed: selection.reversed,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue