From 1dc16e67098018112d8cd838537904381d3aaa89 Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 10 Mar 2023 09:52:40 +0800 Subject: feat: type `{` `[` `(` to enter multi-line editing mode (#58) Abandon `.editor` command, it's too complicated. --- src/repl/prompt.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/repl/prompt.rs') 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 { - Cow::Borrowed(DEFAULT_MULTILINE_INDICATOR) + Cow::Borrowed("") } fn render_prompt_history_search_indicator( -- cgit v1.2.3