From 30f6543f076a2127384f08ee3f9076458ca72634 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Mon, 13 Jan 2025 16:29:20 +0900 Subject: [PATCH] Fix path check --- denops/ddu/ddu.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/denops/ddu/ddu.ts b/denops/ddu/ddu.ts index 49d8dfb..97f44fb 100644 --- a/denops/ddu/ddu.ts +++ b/denops/ddu/ddu.ts @@ -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(