From 86834a02b301bba48c2bd568beb156e604470167 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 12 Jul 2022 19:04:31 +0200 Subject: Fix some issues around empty lists --- src/util/skip.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/skip.rs b/src/util/skip.rs index 3307734..d7b3896 100644 --- a/src/util/skip.rs +++ b/src/util/skip.rs @@ -59,7 +59,10 @@ fn skip_opt_with_direction( }; if events[index].token_type == *current && balance == 0 { - println!("close:it! {:?} {:?}", events[index].token_type, balance); + println!( + "close:it! {:?} {:?} {:?}", + events[index].token_type, balance, index + ); index = if forward { index + 1 } else { index - 1 }; println!("index:break: {:?}", index); break; -- cgit