From abe2d90693e5cec3428c0162c48f0ea38972ff31 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Tue, 20 Sep 2022 11:15:32 +0100 Subject: [PATCH] feat(lua): move compat module from runtime to test (#20257) --- runtime/lua/man.lua | 2 -- {runtime/lua/vim => test}/compat.lua | 0 test/helpers.lua | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) rename {runtime/lua/vim => test}/compat.lua (100%) diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index 82ed0305f7..f0306f4871 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -1,5 +1,3 @@ -require('vim.compat') - local api, fn = vim.api, vim.fn local find_arg = '-w' diff --git a/runtime/lua/vim/compat.lua b/test/compat.lua similarity index 100% rename from runtime/lua/vim/compat.lua rename to test/compat.lua diff --git a/test/helpers.lua b/test/helpers.lua index 499b91488b..a7eda60f87 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -1,4 +1,4 @@ -require('vim.compat') +require('test.compat') local shared = require('vim.shared') local assert = require('luassert') local luv = require('luv')