diff options
author | Robin Jarry <robin@jarry.cc> | 2023-02-05 23:23:02 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-02-20 14:48:42 +0100 |
commit | 6af06c9dfec03e923589d34187ba8358e3423d5c (patch) | |
tree | 3722f17464ca651ebd12d7d6d55a0e97ae72c8ec /commands/msgview/toggle-key-passthrough.go | |
parent | 34db5942bd7b642107002b75de9d5d5c7fe90e4c (diff) | |
download | aerc-6af06c9dfec03e923589d34187ba8358e3423d5c.tar.gz |
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 <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'commands/msgview/toggle-key-passthrough.go')
-rw-r--r-- | commands/msgview/toggle-key-passthrough.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |