add countable check to search_marker update

This commit is contained in:
Kevin Jahns 2021-05-25 21:23:12 +02:00
parent d80512d690
commit da21fca334

View File

@ -573,7 +573,7 @@ export class Item extends AbstractStruct {
// right is going to be "forgotten" so we need to update the marker
marker.p = this
// adjust marker index
if (!this.deleted) {
if (!this.deleted && this.countable) {
marker.index -= this.length
}
}