summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_system.lua
diff options
context:
space:
mode:
authorVlad <52591095+MeanderingProgrammer@users.noreply.github.com>2025-10-11 20:23:19 -0700
committerGitHub <noreply@github.com>2025-10-12 03:23:19 +0000
commit2ea7333f64cf3b2acd0ad6ee28cfc3776b8b4510 (patch)
tree25ae3ae4c456ab6a568518ff376ae9fe63dbc52b /runtime/lua/vim/_system.lua
parent072f126453e8f23b1151b50a0c06baefa4bc8b92 (diff)
test(plugin/pack_spec): handle pcall path truncation #36143
Problem In `vim.pack` the source of any errors is included in the `update` buffer from lua's `pcall` method. Since the full path is known it is replaced in the unit test by the string `VIM_PACK_RUNTIME`. The issue is that `pcall` does not necessarily include the full path, it instead uses the `lua_Debug` `short_src` value which can be truncated. This means depending on where you've cloned the repo locally the test can fail. Solution Change the replacement pattern for the traceback to be more generic and handle any path prefix, not just the value of `vim.env.VIMRUNTIME`.
Diffstat (limited to 'runtime/lua/vim/_system.lua')
0 files changed, 0 insertions, 0 deletions