diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index 565a6f6a..54da88de 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -356,7 +356,7 @@ export const Editor = memo(function Editor({ const activeTab = tabs.find((t) => t.entry.path === activeTabPath) ?? null const isLoadingNewTab = activeTabPath !== null && !activeTab - const showDiffToggle = activeTab && isModified?.(activeTab.entry.path) + const showDiffToggle = activeTab && (diffMode || isModified?.(activeTab.entry.path)) useEffect(() => { setDiffMode(false) @@ -486,6 +486,14 @@ export const Editor = memo(function Editor({ {breadcrumbBar} {diffMode && (