retab and cleanup
This commit is contained in:
@@ -35,15 +35,17 @@ do
|
||||
|
||||
local orig = debug.traceback
|
||||
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
debug.traceback = function(...)
|
||||
local trace = full_trace()
|
||||
local orig_trace = orig(...) -- TODO remove. find message instead
|
||||
|
||||
vim.fn.setqflist({}, "a", {
|
||||
title = "Traceback",
|
||||
lines = vim.split(trace, "\n"),
|
||||
})
|
||||
|
||||
return trace
|
||||
return orig_trace
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user