Implement :reply -q and :reply -a
This commit is contained in:
parent
475b697bdf
commit
8be59cae6c
4 changed files with 73 additions and 19 deletions
widgets
|
@ -124,6 +124,15 @@ func (c *Composer) Defaults(defaults map[string]string) *Composer {
|
|||
return c
|
||||
}
|
||||
|
||||
// Note: this does not reload the editor. You must call this before the first
|
||||
// Draw() call.
|
||||
func (c *Composer) SetContents(reader io.Reader) *Composer {
|
||||
c.email.Seek(0, os.SEEK_SET)
|
||||
io.Copy(c.email, reader)
|
||||
c.email.Seek(0, os.SEEK_SET)
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Composer) FocusTerminal() *Composer {
|
||||
c.focusable[c.focused].Focus(false)
|
||||
c.focused = 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue