summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-12-18 08:09:16 +0800
committerGitHub <noreply@github.com>2025-12-18 08:09:16 +0800
commitc08139d790b783dc82f96869fdc14111495d1cd4 (patch)
tree8da2bb8c1d1bd0219927cd3b7116ca5a174e2397 /runtime/lua/vim/_editor.lua
parentc172fd9f464d5766eab9071e8f4770504c920c05 (diff)
fix(lua): don't remove first char of non-file stacktrace source (#37008)
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
-rw-r--r--runtime/lua/vim/_editor.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua
index ac88c32bc2..d84f80de3f 100644
--- a/runtime/lua/vim/_editor.lua
+++ b/runtime/lua/vim/_editor.lua
@@ -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