Skip to content

Commit e0be843

Browse files
committed
Make is-windows check more reliable
`sysname` doesn't always contain `Windows`, depending on how Neovim is run on Windows it can contain stuff like `MINGW32_NT-10.0` Closes https://github.com/mfussenegger/nvim-dap-python/issues/115
1 parent 37b4cba commit e0be843

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/dap-python.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ local function prune_nil(items)
4343
end
4444

4545
local is_windows = function()
46-
return vim.loop.os_uname().sysname:find("Windows", 1, true) and true
46+
return vim.fn.has("win32") == 1
4747
end
4848

4949

0 commit comments

Comments
 (0)