Skip to content

Commit f27b7c8

Browse files
committed
Fix job run regex
1 parent f4e4d03 commit f27b7c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/tpipeline/health.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ M.check = function()
1111
vim.health.report_ok("Neovim version is supported")
1212
end
1313

14-
if vim.regex('%run'):match_str(info.job_state) == nil then
15-
vim.health.report_ok("Background job is running")
16-
else
14+
if vim.regex('^run'):match_str(info.job_state) == nil then
1715
vim.health.report_error(string.format("Background job is not running: %s", info.job_state))
16+
else
17+
vim.health.report_ok("Background job is running")
1818
end
1919

2020
if next(info.job_errors) == nil then

0 commit comments

Comments
 (0)