Use de morgan

This commit is contained in:
Ariel Davis 2023-05-06 15:06:51 -07:00
parent 7cdca727a8
commit 7a7f90cf28

View file

@ -161,7 +161,7 @@ impl LineIndex {
.get(&ret.line)
.into_iter()
.flat_map(|it| it.iter())
.all(|it| !(it.start < col && col < it.end))
.all(|it| col <= it.start || it.end <= col)
.then_some(ret)
}