mirror of
https://github.com/neovim/neovim.git
synced 2026-03-30 12:22:08 +00:00
fix(lua): don't remove first char of non-file stacktrace source (#37008)
This commit is contained in:
@@ -1252,7 +1252,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