Skip to content

Commit

Permalink
fix(sources-path): infinate loop finding root on Windows system (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Nov 14, 2023
1 parent 183587d commit c8a209e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dropbar/sources/path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c8a209e

Please sign in to comment.