File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 405
405
M .not_chat = function (buf , file_name )
406
406
file_name = vim .fn .resolve (file_name )
407
407
local chat_dir = vim .fn .resolve (M .config .chat_dir )
408
- if vim .fn .has (" win32" ) then
408
+ if vim .fn .has (" win32" ) == 1 then
409
409
file_name = file_name :gsub (" \\ " , " /" )
410
410
chat_dir = chat_dir :gsub (" \\ " , " /" )
411
411
end
@@ -527,7 +527,7 @@ M.prep_chat = function(buf, file_name)
527
527
528
528
-- make last.md a symlink to the last opened chat file
529
529
local last = M .config .chat_dir .. " /last.md"
530
- if file_name ~= last and vim .fn .has (" win32" ) then
530
+ if file_name ~= last and vim .fn .has (" win32" ) == 1 then
531
531
os.execute (" pwsh -Noprofile -c New-Item -Force -ItemType SymbolicLink -Path " .. last .. " -Target " .. file_name )
532
532
elseif file_name ~= last then
533
533
os.execute (" ln -sf " .. file_name .. " " .. last )
You can’t perform that action at this time.
0 commit comments