Throw a warning instead of crashing
This commit is contained in:
parent
95f164b5ec
commit
ea14bbbfa8
1 changed files with 2 additions and 2 deletions
|
@ -94,13 +94,13 @@ trait BoundedObject {
|
|||
let inner_start = self
|
||||
.next_start(map, outer_range.start, false)
|
||||
.unwrap_or_else(|| {
|
||||
todo!();
|
||||
log::warn!("The motion might not have found the text object correctly");
|
||||
outer_range.start
|
||||
});
|
||||
let inner_end = self
|
||||
.previous_end(map, outer_range.end, false)
|
||||
.unwrap_or_else(|| {
|
||||
todo!();
|
||||
log::warn!("The motion might not have found the text object correctly");
|
||||
outer_range.end
|
||||
});
|
||||
inner_start..inner_end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue