From 509dfe72a8cb05d0ca7a24233d9a25928ef2b805 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Wed, 31 Jul 2019 05:57:22 +1200 Subject: [PATCH] Switch to rustyline nightly --- Cargo.lock | 6 +++--- Cargo.toml | 3 ++- src/plugins/textview.rs | 2 -- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cbac7fddb..dbdb6ffa5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1845,7 +1845,7 @@ dependencies = [ "regex 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.9.19 (registry+https://github.com/rust-lang/crates.io-index)", "roxmltree 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", - "rustyline 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "rustyline 5.0.0 (git+https://github.com//kkawakam/rustyline)", "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.98 (registry+https://github.com/rust-lang/crates.io-index)", "serde-hjson 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2630,7 +2630,7 @@ dependencies = [ [[package]] name = "rustyline" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" +source = "git+https://github.com//kkawakam/rustyline#40d304ea6aa173076fda87f1dfbcffe533e51e46" dependencies = [ "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.60 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3854,7 +3854,7 @@ dependencies = [ "checksum rustc-demangle 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "a7f4dccf6f4891ebcc0c39f9b6eb1a83b9bf5d747cb439ec6fba4f3b977038af" "checksum rustc-hash 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7540fc8b0c49f096ee9c961cda096467dce8084bec6bdca2fc83895fd9b28cb8" "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -"checksum rustyline 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "67e12e40e0240de07f0dab4f4dd01bdb15d74dc977026d4ba91666c41c679ade" +"checksum rustyline 5.0.0 (git+https://github.com//kkawakam/rustyline)" = "" "checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997" "checksum safemem 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8dca453248a96cb0749e36ccdfe2b0b4e54a61bfef89fb97ec621eb8e0a93dd9" "checksum same-file 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "585e8ddcedc187886a30fa705c47985c3fa88d06624095856b36ca0b82ff4421" diff --git a/Cargo.toml b/Cargo.toml index b9a56f3e4..408c51f23 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,8 @@ homepage = "https://github.com/nushell/nushell" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rustyline = "5.0.0" +#rustyline = "5.0.0" +rustyline = { git = "https://github.com//kkawakam/rustyline" } sysinfo = "0.9" chrono = { version = "0.4.7", features = ["serde"] } chrono-tz = "0.5.1" diff --git a/src/plugins/textview.rs b/src/plugins/textview.rs index 4f8e49e82..86a51d716 100644 --- a/src/plugins/textview.rs +++ b/src/plugins/textview.rs @@ -189,8 +189,6 @@ fn scroll_view_lines_if_needed(draw_commands: Vec, use_color_buffer } } } - - let _ = cursor.show(); } let cursor = cursor();