Skip to content

Commit

Permalink
Fix selected document restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Aug 30, 2024
1 parent c394bc6 commit c8c61d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CotEditor/Sources/DirectoryDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ final class DirectoryDocument: NSDocument {
var isStale = false
return try? URL(resolvingBookmarkData: $0, options: .withSecurityScope, bookmarkDataIsStale: &isStale)
}
.filter { $0.isAncestor(of: fileURL) }
.filter(fileURL.isAncestor(of:))
.filter(\.isReachable)

if !urls.isEmpty {
Expand Down

0 comments on commit c8c61d5

Please sign in to comment.