File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ func tpipeline#build_hooks()
33
33
endif
34
34
35
35
if empty (g: tpipeline_statusline ) && ! g: tpipeline_tabline && g: tpipeline_clearstl
36
- au OptionSet statusline if v: option_type == ' global' | let g: tpipeline_statusline = & stl | set stl = % # StatusLine # | call tpipeline#update () | endif
36
+ au OptionSet statusline if v: option_type == ' global' | call tpipeline#util#clear_stl () | call tpipeline#update () | endif
37
37
endif
38
38
augroup END
39
39
endfunc
@@ -189,8 +189,7 @@ func tpipeline#init_statusline()
189
189
set stl = % ! tpipeline#stl#line ()
190
190
endif
191
191
if g: tpipeline_clearstl
192
- let g: tpipeline_statusline = &stl
193
- set stl = % #StatusLine #
192
+ call tpipeline#util#clear_stl ()
194
193
endif
195
194
endif
196
195
endif
Original file line number Diff line number Diff line change @@ -24,3 +24,8 @@ endfunc
24
24
func tpipeline#util#remove_align (str)
25
25
return substitute (a: str , ' %=' , ' ' , ' g' )
26
26
endfunc
27
+
28
+ func tpipeline#util#clear_stl ()
29
+ let g: tpipeline_statusline = &stl
30
+ set stl = % #StatusLine #
31
+ endfunc
You can’t perform that action at this time.
0 commit comments