mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 08:35:28 +00:00
remove extra scopes
This commit is contained in:
parent
bc47a2730e
commit
a6aad5e3a8
1 changed files with 21 additions and 26 deletions
|
|
@ -85,12 +85,12 @@ impl Form {
|
|||
if !this.text().is_empty() {
|
||||
match navigation.forward(subject) {
|
||||
Some((mut start, _)) => {
|
||||
navigation.update();
|
||||
result.update(navigation.position(), navigation.total());
|
||||
scroll_to_iter(&subject.text_view, &mut start)
|
||||
}
|
||||
None => todo!(), // unexpected
|
||||
}
|
||||
navigation.update()
|
||||
}
|
||||
}
|
||||
None => todo!(),
|
||||
|
|
@ -126,19 +126,16 @@ impl Form {
|
|||
let navigation = navigation.clone();
|
||||
let result = result.clone();
|
||||
let subject = subject.clone();
|
||||
move |_| {
|
||||
match subject.borrow().as_ref() {
|
||||
Some(subject) => match navigation.back(subject) {
|
||||
Some((mut start, _)) => {
|
||||
result.update(navigation.position(), navigation.total());
|
||||
scroll_to_iter(&subject.text_view, &mut start)
|
||||
}
|
||||
None => todo!(), // unexpected
|
||||
},
|
||||
|
||||
None => todo!(),
|
||||
}
|
||||
navigation.update()
|
||||
move |_| match subject.borrow().as_ref() {
|
||||
Some(subject) => match navigation.back(subject) {
|
||||
Some((mut start, _)) => {
|
||||
navigation.update();
|
||||
result.update(navigation.position(), navigation.total());
|
||||
scroll_to_iter(&subject.text_view, &mut start)
|
||||
}
|
||||
None => todo!(), // unexpected
|
||||
},
|
||||
None => todo!(),
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -146,19 +143,17 @@ impl Form {
|
|||
let navigation = navigation.clone();
|
||||
let result = result.clone();
|
||||
let subject = subject.clone();
|
||||
move |_| {
|
||||
match subject.borrow().as_ref() {
|
||||
Some(subject) => match navigation.forward(subject) {
|
||||
Some((mut start, _)) => {
|
||||
result.update(navigation.position(), navigation.total());
|
||||
scroll_to_iter(&subject.text_view, &mut start)
|
||||
}
|
||||
None => todo!(), // unexpected
|
||||
},
|
||||
move |_| match subject.borrow().as_ref() {
|
||||
Some(subject) => match navigation.forward(subject) {
|
||||
Some((mut start, _)) => {
|
||||
navigation.update();
|
||||
result.update(navigation.position(), navigation.total());
|
||||
scroll_to_iter(&subject.text_view, &mut start)
|
||||
}
|
||||
None => todo!(), // unexpected
|
||||
},
|
||||
|
||||
None => todo!(),
|
||||
}
|
||||
navigation.update()
|
||||
None => todo!(),
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue