mirror of
https://github.com/folke/persistence.nvim.git
synced 2025-07-04 22:44:46 +02:00
fix: vim.fn.has('win32') returns 0 or 1, not a boolean (#8)
This commit is contained in:
parent
83af96b1f2
commit
77cf5a6ee1
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ local e = vim.fn.fnameescape
|
|||
|
||||
function M.get_current()
|
||||
local pattern = "/"
|
||||
if vim.fn.has("win32") then
|
||||
if vim.fn.has("win32") == 1 then
|
||||
pattern = '[\\:]'
|
||||
end
|
||||
local name = vim.fn.getcwd():gsub(pattern, "%%")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue