mirror of
https://github.com/neovim/neovim.git
synced 2026-02-26 13:25:09 +00:00
fix(lua): don't remove first char of non-file stacktrace source (#37008)
This commit is contained in:
@@ -1323,7 +1323,7 @@ local function traceback()
|
||||
if not info then
|
||||
break
|
||||
end
|
||||
local msg = (' %s:%s'):format(info.source:sub(2), info.currentline)
|
||||
local msg = (' %s:%s'):format(info.source:gsub('^@', ''), info.currentline)
|
||||
table.insert(backtrace, msg)
|
||||
level = level + 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user