1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:20:03 +08:00
SpaceVim/bundle/nui.nvim/scripts/plenary-353.patch
2023-05-30 21:09:18 +08:00

36 lines
914 B
Diff

diff --git a/lua/plenary/busted.lua b/lua/plenary/busted.lua
index 1b15fce..8363084 100644
--- a/lua/plenary/busted.lua
+++ b/lua/plenary/busted.lua
@@ -238,7 +238,7 @@ mod.run = function(file)
-- If nothing runs (empty file without top level describe)
if not results.pass then
if is_headless then
- return vim.cmd "0cq"
+ os.exit(0)
else
return
end
@@ -259,7 +259,7 @@ mod.run = function(file)
end
else
if is_headless then
- return vim.cmd "0cq"
+ os.exit(0)
end
end
end)()
diff --git a/lua/plenary/test_harness.lua b/lua/plenary/test_harness.lua
index 394e28d..66cc6b4 100644
--- a/lua/plenary/test_harness.lua
+++ b/lua/plenary/test_harness.lua
@@ -169,7 +169,7 @@ function harness.test_directory(directory, opts)
return vim.cmd "1cq"
end
- return vim.cmd "0cq"
+ os.exit(0)
end
end