mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:15:00 +02:00
Bump deps and touchup (#2066)
This commit is contained in:
@ -21,7 +21,7 @@ syntect = { version = "4.2", default-features = false, features = ["default-fanc
|
||||
ansi_term = "0.12.1"
|
||||
url = "2.1.1"
|
||||
bat = "0.15.4"
|
||||
textwrap = {version = "0.11.0", features = ["term_size"]}
|
||||
term_size = "0.3.2"
|
||||
|
||||
[build-dependencies]
|
||||
nu-build = { version = "0.15.1", path = "../nu-build" }
|
||||
|
@ -13,7 +13,7 @@ impl TextView {
|
||||
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
pub fn view_text_value(value: &Value) {
|
||||
let mut term_width: u64 = textwrap::termwidth() as u64;
|
||||
let (mut term_width, _) = term_size::dimensions().unwrap_or_else(|| (20, 20));
|
||||
let mut tab_width: u64 = 4;
|
||||
let mut colored_output = true;
|
||||
let mut true_color = true;
|
||||
@ -38,8 +38,8 @@ pub fn view_text_value(value: &Value) {
|
||||
match idx.as_ref() {
|
||||
"term_width" => {
|
||||
term_width = match value.as_u64() {
|
||||
Ok(n) => n,
|
||||
_ => textwrap::termwidth() as u64,
|
||||
Ok(n) => n as usize,
|
||||
_ => term_width as usize,
|
||||
}
|
||||
}
|
||||
"tab_width" => {
|
||||
|
Reference in New Issue
Block a user