Fix issues when swapping between message input and editor (#363)
This commit is contained in:
parent
23cb3a146a
commit
198cc8f1d6
1 changed files with 2 additions and 1 deletions
|
|
@ -120,6 +120,7 @@ func (mi *MessageInput) launchEditorAction() {
|
|||
log.Println(err)
|
||||
return
|
||||
}
|
||||
f.WriteString(mi.GetText())
|
||||
f.Close()
|
||||
|
||||
defer os.Remove(f.Name())
|
||||
|
|
@ -143,5 +144,5 @@ func (mi *MessageInput) launchEditorAction() {
|
|||
return
|
||||
}
|
||||
|
||||
mi.SetText(string(msg), true)
|
||||
mi.SetText(strings.TrimSpace(string(msg)), true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue