diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-16 14:09:57 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-16 14:09:57 -0400 |
commit | 5701b6e94968e6e84dd0c197eaf1dd8eb757da7b (patch) | |
tree | f84eacc24c2474ecf74e40defeef5cb0482fd3b0 /widgets | |
parent | 08855f23ec714346bf31ef7d881924e86fb8f530 (diff) |
Decode email when reading it for quoting
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/compose.go | 1 |
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 } |