diff --git a/CHANGELOG.md b/CHANGELOG.md index ba8000657c..084099a39d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Fixes - [beta] Fix an issue that UNIX scripts could not get the document object displayed in a folder. +- [beta.3] Fix an issue that the editor unwontedly selects the nearest outline item when the Outline inspector is shown. ### Known Issues diff --git a/CotEditor/Sources/Document Window/Inspector/OutlineInspectorView.swift b/CotEditor/Sources/Document Window/Inspector/OutlineInspectorView.swift index 4ee7aa592d..8cd0f7b947 100644 --- a/CotEditor/Sources/Document Window/Inspector/OutlineInspectorView.swift +++ b/CotEditor/Sources/Document Window/Inspector/OutlineInspectorView.swift @@ -274,8 +274,9 @@ private extension OutlineInspectorView.Model { self.isOwnSelectionChange = true self.selection = item.id - // adjust the timing to restore flag + // adjust the timing to restore flag for selectItem(id:) Task { + await Task.yield() self.isOwnSelectionChange = false } }