Skip to content

Commit

Permalink
fix: do not append formatting prompt to db save title
Browse files Browse the repository at this point in the history
closes #182

Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jan 8, 2024
1 parent 8265897 commit 6b81f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func (m *Mods) startCompletionCmd(content string) tea.Cmd {
m.cancelRequest = cancel
prefix := cfg.Prefix
if cfg.Format {
prefix = fmt.Sprintf("%s %s", prefix, cfg.FormatText)
prefix = fmt.Sprintf("%s\n%s", prefix, cfg.FormatText)
}
if prefix != "" {
content = strings.TrimSpace(prefix + "\n\n" + content)
Expand Down

0 comments on commit 6b81f43

Please sign in to comment.