Coming from TomasMikula/RichTextFX#362, and its solution (TomasMikula/RichTextFX#530)...
We only need to add a Duration parameter to the UndoManagerImpl's constructor, so that the UndoManager's subscription will also unsubscribe the Subscription returned from changeSource.successionEnds(delay).subscribe(ignore -> preventMerge());
Coming from TomasMikula/RichTextFX#362, and its solution (TomasMikula/RichTextFX#530)...
We only need to add a
Duration
parameter to theUndoManagerImpl
's constructor, so that theUndoManager
'ssubscription
will also unsubscribe theSubscription
returned fromchangeSource.successionEnds(delay).subscribe(ignore -> preventMerge());