1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-08 11:58:32 +02:00

Merge pull request from jonathandturner/fix_1068

Fix 1068
This commit is contained in:
Jonathan Turner 2019-12-08 12:38:10 -08:00 committed by GitHub
commit d26e938436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions
Cargo.toml
crates/nu_plugin_textview/src

View File

@ -128,7 +128,7 @@ pretty_assertions = "0.6.1"
[build-dependencies] [build-dependencies]
toml = "0.5.5" toml = "0.5.5"
serde = { version = "1.0.102", features = ["derive"] } serde = { version = "1.0.103", features = ["derive"] }
nu-build = { version = "0.1.0", path = "./crates/nu-build" } nu-build = { version = "0.1.0", path = "./crates/nu-build" }
[lib] [lib]

View File

@ -32,8 +32,10 @@ impl Plugin for TextView {
} }
fn sink(&mut self, _call_info: CallInfo, input: Vec<Value>) { fn sink(&mut self, _call_info: CallInfo, input: Vec<Value>) {
if !input.is_empty() {
view_text_value(&input[0]); view_text_value(&input[0]);
} }
}
} }
fn paint_textview( fn paint_textview(