From 06199d731ba61bd1fe6faaec1f073cc851d720ec Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Fri, 20 May 2022 17:35:25 +0200 Subject: [PATCH] Use bleeding edge reedline, with fix for #5593 (#5598) Fixes #5593 (OOM introduced with #5587 when no config was present and an attempt was made to allocate all memory in advance) Includes also other changes to reedline: - Vi word definition fixed and `w` and `e` work as expected --- Cargo.lock | 3 +-- Cargo.toml | 2 +- crates/nu-cli/Cargo.toml | 2 +- crates/nu-command/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ab51fd0d..4fde2ec51 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3737,8 +3737,7 @@ dependencies = [ [[package]] name = "reedline" version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96c36021d0668f3b4f8c054fce3a9b9b0aa83fc60aa6c59df0e2165f9980763" +source = "git+https://github.com/nushell/reedline?branch=main#85daf4e4fc7c18644077440009db3f70dcd8202c" dependencies = [ "chrono", "crossterm", diff --git a/Cargo.toml b/Cargo.toml index dbe568f7a..95e3c94bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ nu-utils = { path = "./crates/nu-utils", version = "0.62.1" } openssl = { version = "0.10.38", features = ["vendored"], optional = true } pretty_env_logger = "0.4.0" rayon = "1.5.1" -reedline = { version = "0.5.0", features = ["bashisms"]} +reedline = { git = "https://github.com/nushell/reedline", branch = "main", features = ["bashisms"]} is_executable = "1.0.1" [dev-dependencies] diff --git a/crates/nu-cli/Cargo.toml b/crates/nu-cli/Cargo.toml index 697e2a639..6232ca1bf 100644 --- a/crates/nu-cli/Cargo.toml +++ b/crates/nu-cli/Cargo.toml @@ -18,7 +18,7 @@ nu-protocol = { path = "../nu-protocol", version = "0.62.1" } nu-utils = { path = "../nu-utils", version = "0.62.1" } nu-ansi-term = "0.45.1" nu-color-config = { path = "../nu-color-config", version = "0.62.1" } -reedline = { version = "0.5.0", features = ["bashisms"]} +reedline = { git = "https://github.com/nushell/reedline", branch = "main", features = ["bashisms"]} crossterm = "0.23.0" miette = { version = "4.5.0", features = ["fancy"] } thiserror = "1.0.29" diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index af9826a5f..d86ae79f9 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -82,7 +82,7 @@ unicode-segmentation = "1.8.0" url = "2.2.1" uuid = { version = "0.8.2", features = ["v4"] } which = { version = "4.2.2", optional = true } -reedline = { version = "0.5.0", features = ["bashisms"]} +reedline = { git = "https://github.com/nushell/reedline", branch = "main", features = ["bashisms"]} wax = { version = "0.4.0", features = ["diagnostics"] } rusqlite = { version = "0.27.0", features = ["bundled"], optional = true } sqlparser = { version = "0.16.0", features = ["serde"], optional = true }