aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-12-02 22:21:15 +0100
committerGitHub <noreply@github.com>2019-12-02 22:21:15 +0100
commit22b52dd462e5dc9d5429305215bfb20aa20517c5 (patch)
treee949639a97f7a5e6e39922bf521c5071c78986b2 /src/nvim/main.c
parent56be9fbde1ec27fd8ca3fdb8eb6adb94b8c33b53 (diff)
downloadrneovim-22b52dd462e5dc9d5429305215bfb20aa20517c5.tar.gz
rneovim-22b52dd462e5dc9d5429305215bfb20aa20517c5.tar.bz2
rneovim-22b52dd462e5dc9d5429305215bfb20aa20517c5.zip
log_init: call log_path_init (#11501)
This has to be done after `init_homedir` for XDG default and `set_init_1` for lookup from env, which could be done earlier likely (to help with https://github.com/neovim/neovim/issues/10937), but this keeps it in sync with Vim. Fixes https://github.com/neovim/neovim/issues/11499.
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index c8959d9ad1..c7011f4f4e 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -144,7 +144,6 @@ static const char *err_extra_cmd =
void event_init(void)
{
- log_init();
loop_init(&main_loop, NULL);
resize_events = multiqueue_new_child(main_loop.events);
@@ -220,6 +219,7 @@ void early_init(void)
// First find out the home directory, needed to expand "~" in options.
init_homedir(); // find real value of $HOME
set_init_1();
+ log_init();
TIME_MSG("inits 1");
set_lang_var(); // set v:lang and v:ctype