pub fn create(context: &Context) -> Editor<EditorHelper> {
    let config = &context.borrow().config;
    let mut editor = Editor::with_config(
        Config::builder()
            .history_ignore_space(true)
            .history_ignore_dups(true)
            .max_history_size(config.max_history_size)
            .edit_mode(config.edit_mode)
            .completion_type(config.completion_type)
            .build(),
    );

    let h = EditorHelper::new(context.clone());
    editor.set_helper(Some(h));

    editor
}
/// Creates `Editor` instance with proper config and completion.
Creates `Editor` instance with proper config and completion.
Creates ` Editor ` instance with proper config and completion .
pub fn create(context: &Context) -> Editor<EditorHelper> {
    let config = &context.borrow().config;
    let mut editor = Editor::with_config(
        Config::builder()
            .history_ignore_space(true)
            .history_ignore_dups(true)
            .max_history_size(config.max_history_size)
            .edit_mode(config.edit_mode)
            .completion_type(config.completion_type)
            .build(),
    );
    let h = EditorHelper::new(context.clone());
    editor.set_helper(Some(h));
    editor
}
pub fn create ( context : & Context ) -> Editor < EditorHelper > { let config = & context . borrow ( ) . config ; let mut editor = Editor :: with_config ( Config :: builder ( ) . history_ignore_space ( true ) . history_ignore_dups ( true ) . max_history_size ( config . max_history_size ) . edit_mode ( config . edit_mode ) . completion_type ( config . completion_type ) . build ( ) , ) ; let h = EditorHelper :: new ( context . clone ( ) ) ; editor . set_helper ( Some ( h ) ) ; editor }
Creates `Editor` instance with proper config and completion.
Creates ` Editor ` instance with proper config and completion .
context
&Context