Files
news.gitea.happylizard.me/bin/gems/rouge-4.5.1/lib/rouge/demos/viml
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

15 lines
550 B
Plaintext

function! s:Make(dir, make, format, name) abort
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
let cwd = getcwd()
let [mp, efm, cc] = [&l:mp, &l:efm, get(b:, 'current_compiler', '')]
try
execute cd fnameescape(dir)
let [&l:mp, &l:efm, b:current_compiler] = [a:make, a:format, a:compiler]
execute (exists(':Make') == 2 ? 'Make' : 'make')
finally
let [&l:mp, &l:efm, b:current_compiler] = [mp, efm, cc]
if empty(cc) | unlet! b:current_compiler | endif
execute cd fnameescape(cwd)
endtry
endfunction