Start work on making row/columnwise movement work w/ byte columns

This commit is contained in:
Max Brunsfeld
2021-05-20 12:47:08 +02:00
committed by Antonio Scandurra
parent 6621b9b552
commit f3db0dcff6
4 changed files with 119 additions and 9 deletions
+3 -2
View File
@@ -335,6 +335,9 @@ impl Chunk {
let mut point = Point::new(0, 0);
for ch in self.0.chars() {
if point >= target {
if point > target {
panic!("point {:?} is inside of character {:?}", target, ch);
}
break;
}
@@ -346,8 +349,6 @@ impl Chunk {
}
offset += ch.len_utf8();
}
assert_eq!(point, target);
offset
}
}