summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2016-05-08 00:09:12 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2016-05-09 03:40:31 +0200
commit32b5cd9445ebc8e0425a3db07de7fd3dc6381328 (patch)
treebd175c4035923abf0c7a4b875ef114d6d6eadc4b
parentafff99dbb5e721ac51c42610f06054389c8a3556 (diff)
downloadzsh-32b5cd9445ebc8e0425a3db07de7fd3dc6381328.tar.gz
zsh-32b5cd9445ebc8e0425a3db07de7fd3dc6381328.zip
38426: _baudrates: Use 2 space indentation
As per the completion-style-guide.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Type/_baudrates28
2 files changed, 17 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index da833f6f4..953c9aa71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* 38422: Completion/Unix/Type/_baudrate,
Completion/Unix/Type/_baudrates: _baudrate -> _baudrates
+ * 38426: Completion/Unix/Type/_baudrates: _baudrates: Use 2 space
+ indentation
+
2016-05-06 Daniel Shahaf <d.s@daniel.shahaf.name>
* 38401: Completion/Debian/Type/_deb_packages: New completion
diff --git a/Completion/Unix/Type/_baudrates b/Completion/Unix/Type/_baudrates
index 9e87e7a38..35e55ad09 100644
--- a/Completion/Unix/Type/_baudrates
+++ b/Completion/Unix/Type/_baudrates
@@ -51,29 +51,29 @@ zparseopts -E -A opts u: l: f: d: t:
# which is synonymous to "hang-up".
zstyle -a ":completion:${curcontext}:" baud-rates rates ||
- rates=( 50 75 110 134 150 200 300 600
- 1200 1800 2400 4800 9600
- 19200 38400 57600
- 115200 230400 460800 500000 576000 921600
- 1000000 1152000 1500000 2000000 2500000 3000000 3500000 4000000 )
+ rates=( 50 75 110 134 150 200 300 600
+ 1200 1800 2400 4800 9600
+ 19200 38400 57600
+ 115200 230400 460800 500000 576000 921600
+ 1000000 1152000 1500000 2000000 2500000 3000000 3500000 4000000 )
zstyle -s ":completion:${curcontext}:" max-baud-rate tmp && opts[-u]=$tmp
zstyle -s ":completion:${curcontext}:" min-baud-rate tmp && opts[-l]=$tmp
zstyle -s ":completion:${curcontext}:" baud-rate-filter tmp && opts[-f]=$tmp
if (( ${+opts[-u]} )) || (( ${+opts[-l]} )); then
- local -i min max
- min=${opts[-l]:-0}
- max=${opts[-u]:-${${(On)rates}[1]}}
- rates=( ${(M)rates:#${~:-<$min-$max>}} )
+ local -i min max
+ min=${opts[-l]:-0}
+ max=${opts[-u]:-${${(On)rates}[1]}}
+ rates=( ${(M)rates:#${~:-<$min-$max>}} )
fi
if (( ${+opts[-f]} )); then
- set -- $rates
- rates=( )
- for item; do
- ${opts[-f]} $item && rates+=( $item )
- done
+ set -- $rates
+ rates=( )
+ for item; do
+ ${opts[-f]} $item && rates+=( $item )
+ done
fi
tag=${opts[-t]:-baud-rate}