Fix unit test for on-disk-changes to not rely on selection bias
This commit is contained in:
parent
f3cd710f21
commit
9bc08e446b
2 changed files with 12 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue