Skip to content

Commit e9e5928

Browse files
authored
Expose a public function to access active state (#49)
A simple use case could be setting `last_status = 3` when the statusline is not embedded in tmux.
1 parent 87c06c5 commit e9e5928

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/tpipeline/state.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ func tpipeline#state#toggle_frozen()
2828
endif
2929
endfunc
3030

31+
func tpipeline#state#is_active()
32+
return s:active
33+
endfunc
34+
3135
func tpipeline#state#restore()
3236
let s:active = 0
3337

0 commit comments

Comments
 (0)