Skip to content

Commit

Permalink
fix: OS detection when using vim.fn.has
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbongiolo authored and chrisgrieser committed Jan 2, 2024
1 parent 12123cd commit 3dd0e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/genghis/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ function M.trashFile(opts)
cmd("silent! update")

local system
if fn.has("macos") == 1 then system = "macos" end
if fn.has("mac") == 1 then system = "macos" end
if fn.has("linux") == 1 then system = "linux" end
if fn.has("windows") == 1 then system = "windows" end
if fn.has("win32") == 1 then system = "windows" end
local trashCmd = opts.trashCmd or defaultTrashCmds[system]

-- Use a trash command
Expand Down

0 comments on commit 3dd0e64

Please sign in to comment.