list editor cleanup & fix nesting

This commit is contained in:
Michael Sippel 2021-08-28 03:08:41 +02:00
parent fb5ae53e88
commit 11eb30bd5b
Signed by: senvas
GPG key ID: F96CF119C34B64A6
4 changed files with 283 additions and 248 deletions
nested/src/list

View file

@ -157,6 +157,9 @@ impl IndexView<Point2<i16>> for VerticalSexprDecorator {
}
fn get(&self, pt: &Point2<i16>) -> Option<Self::Item> {
if pt.y < 0 {
return None;
}
let item_idx = pt.y as usize;
let list_style = self.list_style.clone();
let item_style = self.item_style.clone();