Skip to content

Commit

Permalink
fix forcing test godebug on GoDebug without params (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcollura authored Nov 11, 2024
1 parent 79b6de4 commit 4dedae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/go/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ M.run = function(...)
log(testfunc)

if testfunc then
if testfunc.name ~= 'main' then
if testfunc.name:lower():find('test') and vim.tbl_isempty(optarg) then
optarg['t'] = true
end
end
Expand Down

0 comments on commit 4dedae4

Please sign in to comment.