From c8a209ee319bb93e41e4daebc02eb1614409c350 Mon Sep 17 00:00:00 2001 From: bekaboo <18127878294@qq.com> Date: Wed, 15 Nov 2023 00:06:23 +0800 Subject: [PATCH] fix(sources-path): infinate loop finding root on Windows system (#111) --- lua/dropbar/sources/path.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dropbar/sources/path.lua b/lua/dropbar/sources/path.lua index b3b248bd..323d6802 100644 --- a/lua/dropbar/sources/path.lua +++ b/lua/dropbar/sources/path.lua @@ -99,8 +99,8 @@ local function get_symbols(buf, win, _) while current_path and current_path ~= '.' - and current_path ~= '/' and current_path ~= root + and current_path ~= vim.fs.dirname(current_path) do table.insert(symbols, 1, convert(current_path, buf, win)) current_path = vim.fs.dirname(current_path)