From 6af06c9dfec03e923589d34187ba8358e3423d5c Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sun, 5 Feb 2023 23:23:02 +0100 Subject: statusline: move files to lib/state These modules will not handle statusline rendering after next commit. Move them in lib/state to make next commit easier to review. Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- commands/msgview/toggle-key-passthrough.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/msgview/toggle-key-passthrough.go') diff --git a/commands/msgview/toggle-key-passthrough.go b/commands/msgview/toggle-key-passthrough.go index cbc4565e..00a39559 100644 --- a/commands/msgview/toggle-key-passthrough.go +++ b/commands/msgview/toggle-key-passthrough.go @@ -3,7 +3,7 @@ package msgview import ( "errors" - "git.sr.ht/~rjarry/aerc/lib/statusline" + "git.sr.ht/~rjarry/aerc/lib/state" "git.sr.ht/~rjarry/aerc/widgets" ) @@ -28,7 +28,7 @@ func (ToggleKeyPassthrough) Execute(aerc *widgets.Aerc, args []string) error { mv, _ := aerc.SelectedTabContent().(*widgets.MessageViewer) keyPassthroughEnabled := mv.ToggleKeyPassthrough() if acct := mv.SelectedAccount(); acct != nil { - acct.SetStatus(statusline.Passthrough(keyPassthroughEnabled)) + acct.SetStatus(state.Passthrough(keyPassthroughEnabled)) } return nil } -- cgit