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)