Skip to content

Commit 8565ddc

Browse files
Resolved PR issues
1 parent 4e55777 commit 8565ddc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeEdit/Features/NavigatorArea/ProjectNavigator/OutlineView/ProjectNavigatorViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ final class ProjectNavigatorViewController: NSViewController {
6565
var shouldSendSelectionUpdate: Bool = true
6666

6767
var filterIsEmpty: Bool {
68-
workspace?.navigatorFilter.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty == true
68+
workspace?.navigatorFilter.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
6969
}
7070

7171
/// Setup the ``scrollView`` and ``outlineView``
@@ -218,7 +218,7 @@ final class ProjectNavigatorViewController: NSViewController {
218218

219219
/// Checks if the given filter matches the name of the item or any of its children.
220220
func fileSearchMatches(_ filter: String, for item: CEWorkspaceFile, sourceControlFilter: Bool) -> Bool {
221-
guard !(filterIsEmpty && !sourceControlFilter) else {
221+
guard !filterIsEmpty || sourceControlFilter else {
222222
return true
223223
}
224224

0 commit comments

Comments
 (0)