From 6f27f5ef91b3eeeca9fe58f4033e3d273ccc0889 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 12 Jun 2019 14:22:42 +0200 Subject: main: do event_init before early_init #10183 Fixes https://github.com/neovim/neovim/issues/10172 * move log_init to event_init * move init_signs to end of early_init --- test/functional/core/startup_spec.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index 45bfa93b56..62a45fdf88 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -221,6 +221,11 @@ describe('startup', function() clear{args={'--embed'}} eq(2, eval('1+1')) end) + + it('does not crash when expanding cdpath during early_init', function() + clear{env={CDPATH='~doesnotexist'}} + eq(',~doesnotexist', eval('&cdpath')) + end) end) describe('sysinit', function() -- cgit