aboutsummaryrefslogtreecommitdiffstats
path: root/lib/statusline/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/statusline/state.go')
-rw-r--r--lib/statusline/state.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/statusline/state.go b/lib/statusline/state.go
index fe32626a..895bb2c4 100644
--- a/lib/statusline/state.go
+++ b/lib/statusline/state.go
@@ -109,6 +109,15 @@ func Search(desc string) SetStateFunc {
}
}
+func Sorting(on bool) SetStateFunc {
+ return func(s *State, folder string) {
+ s.folderState(folder).Sorting = ""
+ if on {
+ s.folderState(folder).Sorting = "sorting"
+ }
+ }
+}
+
func Threading(on bool) SetStateFunc {
return func(s *State, folder string) {
s.folderState(folder).Threading = ""