use $PWD instead of directory of current file

remotes/origin/HEAD
Beau McCartney 2023-09-09 12:44:04 -06:00
parent 683b422944
commit b46b5c33cb
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ end
---Performing common file operation tasks
---@param op string rename|duplicate|new|newFromSel
local function fileOp(op)
local dir = expand("%:p:h")
local dir = fn.getcwd()
local oldName = expand("%:t")
local oldFilePath = expand("%:p")
local oldNameNoExt = oldName:gsub("%.%w+$", "")