Fix assert

This commit is contained in:
Alexandre Bury 2017-08-15 09:33:50 -07:00
parent a48ff9082f
commit 391c5af462

View File

@ -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;
} }
} }