Ensure that WrapMap's input lines match TabMap's output lines

This commit is contained in:
Antonio Scandurra
2021-07-20 11:30:00 +02:00
parent d0113a114c
commit b66de06d0e

View File

@@ -387,6 +387,12 @@ impl BackgroundWrapper {
fn check_invariants(&self) {
#[cfg(debug_assertions)]
{
let summary = self.snapshot.transforms.summary();
assert_eq!(
InputPoint::new(summary.input.lines.row, summary.input.lines.column),
self.snapshot.input.max_point()
);
let mut transforms = self.snapshot.transforms.cursor::<(), ()>().peekable();
while let Some(transform) = transforms.next() {
let next_transform = transforms.peek();