Skip to content

Commit

Permalink
fix(utils): improve path separator detection on Windows (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayooh authored Apr 19, 2024
1 parent 64e2c5d commit d7ebc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/bufferline/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function M.tbl_reverse_lookup(tbl)
return ret
end

M.path_sep = vim.startswith(vim.loop.os_uname().sysname, "Windows") and "\\" or "/"
M.path_sep = vim.fn.has("win32") == 1 and "\\" or "/"

-- The provided api nvim_is_buf_loaded filters out all hidden buffers
--- @param buf_num integer
Expand Down

0 comments on commit d7ebc0d

Please sign in to comment.