summaryrefslogtreecommitdiffstats
path: root/src/repl/prompt.rs
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/repl/prompt.rs
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/repl/prompt.rs')
-rw-r--r--src/repl/prompt.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/repl/prompt.rs b/src/repl/prompt.rs
index 4c56626..dd32ff8 100644
--- a/src/repl/prompt.rs
+++ b/src/repl/prompt.rs
@@ -3,8 +3,6 @@ use crate::config::SharedConfig;
use reedline::{Prompt, PromptHistorySearch, PromptHistorySearchStatus};
use std::borrow::Cow;
-const DEFAULT_MULTILINE_INDICATOR: &str = "::: ";
-
#[derive(Clone)]
pub struct ReplPrompt(SharedConfig);
@@ -43,7 +41,7 @@ impl Prompt for ReplPrompt {
}
fn render_prompt_multiline_indicator(&self) -> Cow<str> {
- Cow::Borrowed(DEFAULT_MULTILINE_INDICATOR)
+ Cow::Borrowed("")
}
fn render_prompt_history_search_indicator(