Panics · P21 Documents: stale block keys, cells and kinds change nothing; replaced text drops visual presses; nested images, versions and find hits hold
This commit is contained in:
1 parent
37c51874c8
commit
10788579c9
17 files changed
+565
-106
No files matched your search
@@ -78,6 +78,10 @@ impl FindWidget {
|
||||
current: Option<usize>,
|
||||
total: usize,
|
||||
) -> Self {
|
||||
if current.is_some_and(|current| current >= total) {
|
||||
log::error!("find: match {current:?} of {total}; none current");
|
||||
}
|
||||
let current = current.filter(|current| *current < total);
|
||||
Self {
|
||||
id: id.into(),
|
||||
find: find.clone(),
|
||||
|
||||
Reference in new issue
Block a user