Skip to content

Commit

Permalink
fix(windows): use UNIX subsystem on MSYS2 (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Aug 11, 2024
1 parent 64a305a commit f84aa38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/fzf-lua/libuv.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local uv = vim.uv or vim.loop

local _has_nvim_010 = vim.fn.has("nvim-0.10") == 1
local _is_win = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1
local _is_win = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 and not vim.env.MSYSTEM

local M = {}

Expand Down
2 changes: 1 addition & 1 deletion lua/fzf-lua/shell_helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- https://github.com/vijaymarupudi/nvim-fzf/blob/master/action_helper.lua
local uv = vim.loop

local _is_win = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1
local _is_win = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 and not vim.env.MSYSTEM

---@return string
local function windows_pipename()
Expand Down
2 changes: 1 addition & 1 deletion lua/fzf-lua/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ M.__HAS_NVIM_08 = vim.fn.has("nvim-0.8") == 1
M.__HAS_NVIM_09 = vim.fn.has("nvim-0.9") == 1
M.__HAS_NVIM_010 = vim.fn.has("nvim-0.10") == 1
M.__HAS_NVIM_011 = vim.fn.has("nvim-0.11") == 1
M.__IS_WINDOWS = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1
M.__IS_WINDOWS = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 and not vim.env.MSYSTEM
-- `:help shellslash` (for more info see #1055)
M.__WIN_HAS_SHELLSLASH = M.__IS_WINDOWS and vim.fn.exists("+shellslash")

Expand Down

0 comments on commit f84aa38

Please sign in to comment.