mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +00:00
Fix assert
This commit is contained in:
parent
a48ff9082f
commit
391c5af462
@ -399,7 +399,7 @@ impl EditView {
|
|||||||
let suffix_length =
|
let suffix_length =
|
||||||
simple_suffix(&self.content, self.last_length - 1).length;
|
simple_suffix(&self.content, self.last_length - 1).length;
|
||||||
|
|
||||||
assert!(self.content.len() >= 1);
|
assert!(self.content.len() >= suffix_length);
|
||||||
self.offset = self.content.len() - suffix_length;
|
self.offset = self.content.len() - suffix_length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user