summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-16 14:09:57 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-16 14:09:57 -0400
commit5701b6e94968e6e84dd0c197eaf1dd8eb757da7b (patch)
treef84eacc24c2474ecf74e40defeef5cb0482fd3b0 /widgets
parent08855f23ec714346bf31ef7d881924e86fb8f530 (diff)
downloadaerc-5701b6e94968e6e84dd0c197eaf1dd8eb757da7b.tar.gz
Decode email when reading it for quoting
Diffstat (limited to 'widgets')
-rw-r--r--widgets/compose.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 14dfaaa..18fe38c 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -129,6 +129,7 @@ func (c *Composer) Defaults(defaults map[string]string) *Composer {
 func (c *Composer) SetContents(reader io.Reader) *Composer {
 	c.email.Seek(0, os.SEEK_SET)
 	io.Copy(c.email, reader)
+	c.email.Sync()
 	c.email.Seek(0, os.SEEK_SET)
 	return c
 }