Skip to content

Commit

Permalink
Fix non-dirty decorator nodes don't get updated
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakTieto committed Aug 8, 2024
1 parent cccfa3d commit c97b39e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Lexical/Core/Reconciler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down

0 comments on commit c97b39e

Please sign in to comment.