mirror of
https://github.com/nushell/nushell.git
synced 2025-02-02 19:50:05 +01:00
Update reedline to new constructor API (#5051)
This commit is contained in:
parent
f692da487e
commit
2193910579
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -3428,7 +3428,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "reedline"
|
name = "reedline"
|
||||||
version = "0.3.1"
|
version = "0.3.1"
|
||||||
source = "git+https://github.com/nushell/reedline?branch=main#0f92985c69efca2567ad40ebc0381864e91aff8c"
|
source = "git+https://github.com/nushell/reedline?branch=main#60386ac6107e8c5b4cdbdc415011c0f4fe2f0f77"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"crossterm",
|
"crossterm",
|
||||||
|
@ -128,7 +128,7 @@ pub fn evaluate_repl(
|
|||||||
if is_perf_true {
|
if is_perf_true {
|
||||||
info!("setup reedline {}:{}:{}", file!(), line!(), column!());
|
info!("setup reedline {}:{}:{}", file!(), line!(), column!());
|
||||||
}
|
}
|
||||||
let mut line_editor = Reedline::create().into_diagnostic()?;
|
let mut line_editor = Reedline::create();
|
||||||
if let Some(history_path) = history_path.as_deref() {
|
if let Some(history_path) = history_path.as_deref() {
|
||||||
if is_perf_true {
|
if is_perf_true {
|
||||||
info!("setup history {}:{}:{}", file!(), line!(), column!());
|
info!("setup history {}:{}:{}", file!(), line!(), column!());
|
||||||
@ -140,7 +140,7 @@ pub fn evaluate_repl(
|
|||||||
)
|
)
|
||||||
.into_diagnostic()?,
|
.into_diagnostic()?,
|
||||||
);
|
);
|
||||||
line_editor = line_editor.with_history(history).into_diagnostic()?;
|
line_editor = line_editor.with_history(history);
|
||||||
};
|
};
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
Loading…
Reference in New Issue
Block a user