From 2bef43fb1bf7dcc5aa8c6aced0fbbcc8c9576bf9 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Sat, 14 Aug 2021 22:05:22 +0000 Subject: [PATCH] fix whitespace --- completions/zsh/_exa | 2 +- devtools/dev-bash.sh | 4 ++-- src/output/grid_details.rs | 4 ++-- src/output/render/size.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/completions/zsh/_exa b/completions/zsh/_exa index b7a6e1d..b915a5d 100644 --- a/completions/zsh/_exa +++ b/completions/zsh/_exa @@ -1,7 +1,7 @@ #compdef exa # Save this file as _exa in /usr/local/share/zsh/site-functions or in any -# other folder in $fpath. E. g. save it in a folder called ~/.zfunc and add a +# other folder in $fpath. E.g. save it in a folder called ~/.zfunc and add a # line containing `fpath=(~/.zfunc $fpath)` somewhere before `compinit` in your # ~/.zshrc. diff --git a/devtools/dev-bash.sh b/devtools/dev-bash.sh index 3a2e50f..8a9073b 100644 --- a/devtools/dev-bash.sh +++ b/devtools/dev-bash.sh @@ -37,8 +37,8 @@ strict() { case "$1" in "on") export EXA_STRICT=1 ;; "off") export EXA_STRICT= ;; - "") [ -n "$EXA_STRICT" ] && echo "strict on" || echo "strict off" ;; - *) echo "Usage: strict on|off"; return 1 ;; + "") [ -n "$EXA_STRICT" ] && echo "strict on" || echo "strict off" ;; + *) echo "Usage: strict on|off"; return 1 ;; esac; } diff --git a/src/output/grid_details.rs b/src/output/grid_details.rs index 35ff023..088d7a8 100644 --- a/src/output/grid_details.rs +++ b/src/output/grid_details.rs @@ -158,7 +158,7 @@ impl<'a> Render<'a> { .collect::>(); let mut last_working_grid = self.make_grid(1, options, &file_names, rows.clone(), &drender); - + if file_names.len() == 1 { return Some((last_working_grid, 1)); } @@ -176,7 +176,7 @@ impl<'a> Render<'a> { if the_grid_fits { last_working_grid = grid; } - + if !the_grid_fits || column_count == file_names.len() { let last_column_count = if the_grid_fits { column_count } else { column_count - 1 }; // If we’ve figured out how many columns can fit in the user’s terminal, diff --git a/src/output/render/size.rs b/src/output/render/size.rs index 94f751b..5a3ad72 100644 --- a/src/output/render/size.rs +++ b/src/output/render/size.rs @@ -46,7 +46,7 @@ impl f::Size { } else { numerics.format_int(n.round() as isize) }; - + TextCell { // symbol is guaranteed to be ASCII since unit prefixes are hardcoded. width: DisplayWidth::from(&*number) + symbol.len(),