Skip to content

Commit

Permalink
Fix path check
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jan 13, 2025
1 parent 7cdd366 commit 30f6543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,8 @@ export class Ddu {
const limitPath = chompTreePath(itemAction.sourceOptions.limitPath);
const newPath = chompTreePath(itemAction.sourceOptions.path);
if (
newPath !== prevPath && (
newPath.length > 0 &&
!equal(newPath, prevPath) && (
limitPath.length === 0 ||
treePath2Filename(newPath) === treePath2Filename(limitPath) ||
isParentPath(
Expand Down

0 comments on commit 30f6543

Please sign in to comment.