Skip to content

Commit 048d0a7

Browse files
committed
Fix ReplBuilder.editor_config being ignored
1 parent 75d16a4 commit 048d0a7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/repl.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,7 @@ impl<'a> ReplBuilder<'a> {
203203
None
204204
},
205205
};
206-
let mut editor = rustyline::Editor::with_config(
207-
rustyline::config::Config::builder()
208-
.output_stream(rustyline::OutputStreamType::Stderr) // NOTE: cannot specify `out`
209-
.completion_type(rustyline::CompletionType::List)
210-
.build(),
211-
);
206+
let mut editor = rustyline::Editor::with_config(self.editor_config);
212207
editor.set_helper(Some(helper));
213208

214209
Ok(Repl {

0 commit comments

Comments
 (0)