From 8018ae3286e7f7987b19d1939caec0683861f3c5 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Tue, 24 May 2022 00:39:55 +0200 Subject: [PATCH] Pin reedline v0.6.0 for the nushell v0.63.0 release (#5620) Release notes: https://github.com/nushell/reedline/releases/tag/v0.6.0 This release contains several bug fixes and improvements to the vi-emulation and documentation. - Improvements to the vi-style keybindings (@sadmac7000): - `w` now correctly moves to the beginning of the word. - `e` to move to the end of the word. - Bugfixes: - Support terminal emulators that erroneously report a size of 0x0 by assuming a default size to avoid panics and draw nevertheless (@DhruvDh) - Fix `ListMenu` layout calculations. Avoids scrolling bug when wrapping occurs due to the line numbering (@ahkrr) - Avoid allocating to the total history capacity which can cause the application to go out of memory (@sholderbach) - Documentation improvements including addition of documentation intended for reedline developers (@petrisch, @sholderbach) --- Cargo.lock | 5 +++-- Cargo.toml | 2 +- crates/nu-cli/Cargo.toml | 2 +- crates/nu-command/Cargo.toml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4fde2ec514..0aa1dc7ee2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3736,8 +3736,9 @@ dependencies = [ [[package]] name = "reedline" -version = "0.5.0" -source = "git+https://github.com/nushell/reedline?branch=main#85daf4e4fc7c18644077440009db3f70dcd8202c" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "422f144c06f679da4ab4f082a6d1d43e28bfabb68d009100e6e5520728f99fec" dependencies = [ "chrono", "crossterm", diff --git a/Cargo.toml b/Cargo.toml index 95e3c94bfe..278c258495 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 = { git = "https://github.com/nushell/reedline", branch = "main", features = ["bashisms"]} +reedline = { version = "0.6.0", features = ["bashisms"]} is_executable = "1.0.1" [dev-dependencies] diff --git a/crates/nu-cli/Cargo.toml b/crates/nu-cli/Cargo.toml index 6232ca1bf2..b38c4bf798 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 = { git = "https://github.com/nushell/reedline", branch = "main", features = ["bashisms"]} +reedline = { version = "0.6.0", 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 d86ae79f96..a2b94efda6 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 = { git = "https://github.com/nushell/reedline", branch = "main", features = ["bashisms"]} +reedline = { version = "0.6.0", 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 }