mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 14:43:55 +03:00
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
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user