vec2list projection: fix idx in Push

This commit is contained in:
Michael Sippel 2024-03-22 18:31:19 +01:00
parent df50cf621b
commit 5397328c78
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -69,7 +69,7 @@ where
}
VecDiff::Push(val) => {
self.cast.notify(&ListDiff::Insert{
idx: self.cur_len + 1,
idx: self.cur_len,
val: val.clone()
});
self.cur_len += 1;