diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-08 21:25:06 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-08 21:25:06 +0200 |
commit | ad9e35e302fe62556414f20ba04933d9c4597681 (patch) | |
tree | cb86b108693b7ea60bfdd37bbe549e9d2f25c13a /termui/termui.go | |
parent | 1017f8c6cbfc4d567bd48c9ed28bd53a0f337eea (diff) | |
download | git-bug-ad9e35e302fe62556414f20ba04933d9c4597681.tar.gz |
termui: add the previous title in the template when editing
Diffstat (limited to 'termui/termui.go')
-rw-r--r-- | termui/termui.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/termui/termui.go b/termui/termui.go index 2e109c3f..d2585c4b 100644 --- a/termui/termui.go +++ b/termui/termui.go @@ -215,7 +215,7 @@ func setTitleWithEditor(bug cache.BugCacher) error { ui.g.Close() ui.g = nil - title, err := input.BugTitleEditorInput(ui.cache.Repository()) + title, err := input.BugTitleEditorInput(ui.cache.Repository(), bug.Snapshot().Title) if err != nil && err != input.ErrEmptyTitle { return err |