summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-10 09:52:40 +0800
committerGitHub <noreply@github.com>2023-03-10 09:52:40 +0800
commit1dc16e67098018112d8cd838537904381d3aaa89 (patch)
tree0eec9d494e94530878fc108b9e3c84e38ae71fee /src/config
parent54e6edbf2121c780c3bf297ec5e30d80f68e3763 (diff)
downloadaichat-1dc16e67098018112d8cd838537904381d3aaa89.tar.gz
feat: type `{` `[` `(` to enter multi-line editing mode (#58)
Abandon `.editor` command, it's too complicated.
Diffstat (limited to 'src/config')
-rw-r--r--src/config/role.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/role.rs b/src/config/role.rs
index 5155ea1..16f7bc1 100644
--- a/src/config/role.rs
+++ b/src/config/role.rs
@@ -39,7 +39,7 @@ impl Role {
if self.embeded() {
merge_prompt_content(&self.prompt, content)
} else {
- format!("{}{content}", self.prompt)
+ format!("{}\n{content}", self.prompt)
}
}