Fix unit test for on-disk-changes to not rely on selection bias

This commit is contained in:
Max Brunsfeld 2021-10-28 16:17:07 -07:00
parent f3cd710f21
commit 9bc08e446b
2 changed files with 12 additions and 8 deletions

View file

@ -638,7 +638,10 @@ impl Buffer {
if selection.start.column == 0 {
let delta = Point::new(
0,
indent_columns.get(&selection.start.row).copied().unwrap_or(0),
indent_columns
.get(&selection.start.row)
.copied()
.unwrap_or(0),
);
if delta.column > 0 {
return Selection {