diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-10-17 18:35:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 18:35:53 +0200 |
commit | 8f9f127274fb5e715645f88fe8e76f4a7ca8ca10 (patch) | |
tree | 7671de084d06fddc7bd8d66f03d369ab85b9a6b7 /test/functional/core/startup_spec.lua | |
parent | a1e8199fff098e158e22e25abc20c512575c1c53 (diff) | |
parent | ea2023f689ad8f368faad6e52c85fbc9762a7296 (diff) | |
download | rneovim-8f9f127274fb5e715645f88fe8e76f4a7ca8ca10.tar.gz rneovim-8f9f127274fb5e715645f88fe8e76f4a7ca8ca10.tar.bz2 rneovim-8f9f127274fb5e715645f88fe8e76f4a7ca8ca10.zip |
Merge pull request #15973 from bfredl/luapath
fix(runtime): don't use regexes inside lua require'mod'
Diffstat (limited to 'test/functional/core/startup_spec.lua')
-rw-r--r-- | test/functional/core/startup_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index bf2559f8d7..cc6e2c8067 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -328,6 +328,15 @@ describe('startup', function() eq({9003, '\thowdy'}, exec_lua [[ return { _G.y, _G.z } ]]) end) + it("handles require from &packpath in an async handler", function() + -- NO! you cannot just speed things up by calling async functions during startup! + -- It doesn't make anything actually faster! NOOOO! + pack_clear [[ lua require'async_leftpad'('brrrr', 'async_res') ]] + + -- haha, async leftpad go brrrrr + eq('\tbrrrr', exec_lua [[ return _G.async_res ]]) + end) + it("handles :packadd during startup", function() -- control group: opt/bonus is not availabe by default pack_clear [[ |