File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1212local function system (url )
1313 if vim .fn .has (" mac" ) > 0 then
1414 vim .fn .jobstart ({ " open" , url })
15+ elseif vim .fn .executable (" powershell.exe" ) > 0 then
16+ vim .fn .jobstart ({ " powershell.exe" , " -Command" , " Start-Process" , url })
1517 elseif vim .fn .has (" win32" ) > 0 or vim .fn .has (" win64" ) > 0 then
16- vim .fn .jobstart ({ " cmd" , " /C" , " start" , url })
18+ if vim .fn .executable (" powershell.exe" ) > 0 then
19+ vim .fn .jobstart ({ " powershell.exe" , " -Command" , " Start-Process" , url })
20+ else
21+ vim .fn .jobstart ({ " cmd" , " /C" , " start" , url })
22+ end
1723 elseif vim .fn .executable (" wslview" ) > 0 then
1824 vim .fn .jobstart ({ " wslview" , url })
19- elseif vim .fn .executable (" powershell.exe" ) > 0 then
20- vim .fn .jobstart ({ " powershell.exe" , " -Command" , " Start-Process" , url })
2125 else
2226 vim .fn .jobstart ({ " xdg-open" , url })
2327 end
You can’t perform that action at this time.
0 commit comments