summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora1346054 <36859588+a1346054@users.noreply.github.com>2021-08-14 22:05:22 +0000
committera1346054 <36859588+a1346054@users.noreply.github.com>2021-08-14 22:05:22 +0000
commit2bef43fb1bf7dcc5aa8c6aced0fbbcc8c9576bf9 (patch)
treeb086077c1f399353c095ed2bfa284711773bb678
parent91dcf52972c1763793f6217699f1f8a4b6339e2e (diff)
fix whitespace
-rw-r--r--completions/zsh/_exa2
-rw-r--r--devtools/dev-bash.sh4
-rw-r--r--src/output/grid_details.rs4
-rw-r--r--src/output/render/size.rs2
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::<Vec<_>>();
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(),