aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2014-09-19 03:49:37 -0400
committerScott Prager <splinterofchaos@gmail.com>2014-11-28 14:27:58 -0500
commit275f6e3a6b5132f814ee947da49b8899f557f0a3 (patch)
tree2de203671477fcb79cc0c5674bad97ef59bf4e83 /test/unit/helpers.lua
parentd5ea1836333f7a139cab46833feb9d35ede46d6c (diff)
downloadrneovim-275f6e3a6b5132f814ee947da49b8899f557f0a3.tar.gz
rneovim-275f6e3a6b5132f814ee947da49b8899f557f0a3.tar.bz2
rneovim-275f6e3a6b5132f814ee947da49b8899f557f0a3.zip
mch_early_init() -> early_init().
Move general initialization functions to early_init, which simplifies test/unit/helpers.lua, which requires all these functions.
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua24
1 files changed, 4 insertions, 20 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index 544a53fa10..1b97a2f15a 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -139,26 +139,10 @@ local function vim_init()
if vim_init_called ~= nil then
return
end
- -- import os_unix.h for mch_early_init(), which initializes some globals
- local all = cimport('./src/nvim/os_unix.h',
- './src/nvim/misc1.h',
- './src/nvim/eval.h',
- './src/nvim/os_unix.h',
- './src/nvim/option.h',
- './src/nvim/ex_cmds2.h',
- './src/nvim/window.h',
- './src/nvim/ops.h',
- './src/nvim/normal.h',
- './src/nvim/mbyte.h')
- all.mch_early_init()
- all.mb_init()
- all.eval_init()
- all.init_normal_cmds()
- all.win_alloc_first()
- all.init_yank()
- all.init_homedir()
- all.set_init_1()
- all.set_lang_var()
+ local main = cimport('./src/nvim/main.h')
+ local time = cimport('./src/nvim/os/time.h')
+ time.time_init()
+ main.early_init()
vim_init_called = true
end