diff options
author | Srivathsan Murali <sri@vathsan.com> | 2020-05-25 16:59:48 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-25 11:29:53 -0400 |
commit | b1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c (patch) | |
tree | 310ff7fa90dfb23c303b7f89674b8411bd8cdf89 /widgets/compose.go | |
parent | a31d184ba53a9a61b8a0eed42cee52f9b1f2dc51 (diff) | |
download | aerc-b1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c.tar.gz |
Set AnsweredFlag on successful reply
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 4281941..01b8dd8 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -52,6 +52,7 @@ type Composer struct { layout HeaderLayout focusable []ui.MouseableDrawableInteractive focused int + sent bool onClose []func(ti *Composer) @@ -163,6 +164,14 @@ func buildComposeHeader(conf *config.AercConfig, cmpl *completer.Completer, return layout, editors, focusable } +func (c *Composer) SetSent() { + c.sent = true +} + +func (c *Composer) Sent() bool { + return c.sent +} + // Note: this does not reload the editor. You must call this before the first // Draw() call. func (c *Composer) SetContents(reader io.Reader) *Composer { |