File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,9 @@ func tpipeline#build_hooks()
35
35
if empty (g: tpipeline_statusline ) && ! g: tpipeline_tabline
36
36
if g: tpipeline_clearstl
37
37
if tpipeline#util#is_lualine ()
38
- au OptionSet statusline call tpipeline#util#clear_stl ()
39
- else
40
- au OptionSet statusline if v: option_type == ' global' | call tpipeline#util#clear_stl () | endif
38
+ au OptionSet statusline if v: option_type == ' local' | call tpipeline#util#clear_all_stl () | endif
41
39
endif
40
+ au OptionSet statusline if v: option_type == ' global' | call tpipeline#util#clear_stl () | endif
42
41
endif
43
42
au OptionSet statusline call tpipeline#update ()
44
43
endif
Original file line number Diff line number Diff line change @@ -34,3 +34,10 @@ func tpipeline#util#is_lualine()
34
34
" lualine doesn't play nice, so it needs extra workarounds
35
35
return has (' nvim' ) && ! empty (nvim_get_autocmds (#{group: " lualine" }))
36
36
endfunc
37
+
38
+ func tpipeline#util#clear_all_stl ()
39
+ for i in range (1 , tabpagewinnr (tabpagenr (), ' $' ))
40
+ call win_execute (win_getid (i ), ' setlocal stl<' )
41
+ endfor
42
+ redrawstatus !
43
+ endfunc
You can’t perform that action at this time.
0 commit comments