Skip to content

Commit

Permalink
Check isTree
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jul 24, 2023
1 parent bc0cc74 commit 6689d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ export class Ddu {
preventRedraw?: boolean;
},
): Promise<DduItem /* searchedItem */ | undefined> {
if (parent.__level < 0 || !parent.treePath) {
if (parent.__level < 0 || !parent.isTree || !parent.treePath) {
return;
}

Expand Down

0 comments on commit 6689d0d

Please sign in to comment.