mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 07:14:50 +01:00
chore: keep track of bug
This commit is contained in:
parent
2ad5d4f6b0
commit
2facbd8f9e
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ pub trait OperationFactory {
|
|||
fn delta(&self, start: usize, txt: &str, end: usize) -> Option<OperationSeq> {
|
||||
let mut out = OperationSeq::default();
|
||||
let content = self.content();
|
||||
let tail_skip = content.len() - end;
|
||||
let tail_skip = content.len() - end; // TODO len is number of bytes, not chars
|
||||
let content_slice = &content[start..tail_skip];
|
||||
|
||||
if content_slice == txt {
|
||||
|
|
Loading…
Reference in a new issue