Loosen randomized changed range assertions on newline characters
For now, don't error if the scope changes for a newline character.
This commit is contained in:
parent
3ac36b0cbe
commit
8b5ff2ec8f
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ impl ScopeSequence {
|
|||
let mut position = Point { row: 0, column: 0 };
|
||||
for (i, stack) in self.0.iter().enumerate() {
|
||||
let other_stack = &other.0[i];
|
||||
if *stack != *other_stack {
|
||||
if *stack != *other_stack && ![b'\r', b'\n'].contains(&text[i]) {
|
||||
let containing_range = known_changed_ranges
|
||||
.iter()
|
||||
.find(|range| range.start_point <= position && position < range.end_point);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue