aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
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
}