Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/luarocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Luarocks upload
uses: nvim-neorocks/luarocks-tag-release@v5
uses: nvim-neorocks/luarocks-tag-release@v7
with:
name: flatten.nvim
labels: |
Expand Down
2 changes: 1 addition & 1 deletion lua/flatten/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local M = {}
local function path_is_absolute(path)
path = string.gsub(path, "^%s+://", "")

if jit.os == "Windows" then
if vim.fn.has("win32") == 1 then
return string.find(path, "^%a:") ~= nil
else
return string.find(path, "^/") ~= nil
Expand Down
4 changes: 2 additions & 2 deletions lua/flatten/guest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ local function send_files(files, stdin, quickfix)

local server = vim.fn.fnameescape(vim.v.servername)
local cwd = vim.fn.fnameescape(vim.fn.getcwd(-1, -1))
if jit.os == "Windows" then
if vim.fn.has("win32") == 1 then
server = sanitize(server)
cwd = sanitize(cwd)
end
Expand Down Expand Up @@ -71,7 +71,7 @@ end
local function send_commands()
local server = vim.fn.fnameescape(vim.v.servername)
local cwd = vim.fn.fnameescape(vim.fn.getcwd(-1, -1))
if jit.os == "Windows" then
if vim.fn.has("win32") == 1 then
server = sanitize(server)
cwd = sanitize(cwd)
end
Expand Down
Loading