Skip to content

Commit d30a024

Browse files
committed
Relocate initialization process again
This is an addendum to 87c06c5. We need to put this after initializing g:tpipeline_fillchar, as otherwise neovim users would still shortly see a harmless, but ugly error during install. Fixes #47
1 parent e9e5928 commit d30a024

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

autoload/tpipeline.vim

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,6 @@ func tpipeline#initialize()
114114
let s:is_nvim = has('nvim')
115115
let s:has_modechgd = exists('##ModeChanged')
116116

117-
augroup tpipelinei
118-
if v:vim_did_enter
119-
call tpipeline#init_statusline()
120-
else
121-
au VimEnter * call tpipeline#init_statusline()
122-
endif
123-
augroup END
124-
125117
if s:is_nvim
126118
let g:tpipeline_fillchar = ""
127119

@@ -131,6 +123,14 @@ func tpipeline#initialize()
131123
endif
132124
au UIEnter * call tpipeline#util#check_gui()
133125
endif
126+
127+
augroup tpipelinei
128+
if v:vim_did_enter
129+
call tpipeline#init_statusline()
130+
else
131+
au VimEnter * call tpipeline#init_statusline()
132+
endif
133+
augroup END
134134
endfunc
135135

136136
func tpipeline#fork_job()

0 commit comments

Comments
 (0)