From da21fca3344c8750039b4e7bfd54af06bafb10a9 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 25 May 2021 21:23:12 +0200 Subject: [PATCH] add countable check to search_marker update --- src/structs/Item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structs/Item.js b/src/structs/Item.js index b8d58f6a..f1b82e37 100644 --- a/src/structs/Item.js +++ b/src/structs/Item.js @@ -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 } }