mirror of
https://github.com/dragonish/obsidian-heading-decorator.git
synced 2026-07-22 05:42:05 +00:00
fix(view): fix inability to detect editor mode switching
This commit is contained in:
parent
93c3c04610
commit
6bbdbf53aa
1 changed files with 3 additions and 3 deletions
|
|
@ -67,9 +67,9 @@ export class HeadingViewPlugin implements PluginValue {
|
|||
if (
|
||||
update.docChanged ||
|
||||
update.viewportChanged ||
|
||||
update.transactions.some((tr) => {
|
||||
tr.effects.some((e) => e.is(updateEditorMode));
|
||||
})
|
||||
update.transactions.some((tr) =>
|
||||
tr.effects.some((e) => e.is(updateEditorMode))
|
||||
)
|
||||
) {
|
||||
this.updateDecorations(
|
||||
update.view,
|
||||
|
|
|
|||
Loading…
Reference in a new issue