diff options
Diffstat (limited to 'lib/statusline/state.go')
-rw-r--r-- | lib/statusline/state.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/statusline/state.go b/lib/statusline/state.go index 3fecd0fe..54746fbd 100644 --- a/lib/statusline/state.go +++ b/lib/statusline/state.go @@ -64,9 +64,13 @@ func (s *State) SetWidth(w int) bool { return changeState } +func (s *State) Connected() bool { + return s.acct.Connected +} + type SetStateFunc func(s *State, folder string) -func Connected(state bool) SetStateFunc { +func SetConnected(state bool) SetStateFunc { return func(s *State, folder string) { s.acct.ConnActivity = "" s.acct.Connected = state |