diff --git a/Lexical/Core/Reconciler.swift b/Lexical/Core/Reconciler.swift index fc75def..1674880 100644 --- a/Lexical/Core/Reconciler.swift +++ b/Lexical/Core/Reconciler.swift @@ -169,8 +169,12 @@ internal enum Reconciler { if let cacheItem = editor.decoratorCache[key], let view = cacheItem.view { editor.decoratorCache[key] = DecoratorCacheItem.needsDecorating(view) } - guard let rangeCacheItem = reconcilerState.nextRangeCache[key] else { return } - textStorage.decoratorPositionCache[key] = rangeCacheItem.location + } + + for key in textStorage.decoratorPositionCache.keys { + if let rangeCacheItem = reconcilerState.nextRangeCache[key] { + textStorage.decoratorPositionCache[key] = rangeCacheItem.location + } } editor.log(.reconciler, .verbose, "about to do rangesToAdd: total \(reconcilerState.rangesToAdd.count)")