From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18048 invoked by alias); 7 May 2016 22:42:55 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38426 Received: (qmail 28802 invoked from network); 7 May 2016 22:42:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 From: Frank Terbeck To: zsh-workers@zsh.org Cc: Oliver Kiddle Subject: [PATCH 2/6] _baudrates: Use 2 space indentation Date: Sun, 8 May 2016 00:09:12 +0200 Message-Id: <1462658956-11785-3-git-send-email-ft@bewatermyfriend.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1462658956-11785-1-git-send-email-ft@bewatermyfriend.org> References: <27858.1462193719@thecus.kiddle.eu> <1462658956-11785-1-git-send-email-ft@bewatermyfriend.org> X-Df-Sender: NDMwNDQ0 As per the completion-style-guide. --- Completion/Unix/Type/_baudrates | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Completion/Unix/Type/_baudrates b/Completion/Unix/Type/_baudrates index 9e87e7a..c6425f0 100644 --- a/Completion/Unix/Type/_baudrates +++ b/Completion/Unix/Type/_baudrates @@ -45,35 +45,35 @@ zparseopts -E -A opts u: l: f: d: t: # Then generate the actual list: # # sed -ne '/^[ \t]*#define[ \t]*B[0-9][0-9]*/s,^.*B\([0-9][0-9]*\).*,\1,p' \ -# < /usr/include/asm-generic/termbits.h + # < /usr/include/asm-generic/termbits.h # # This one was generated on a Debian Stretch system, leaving out the "0" rate, # 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} -- 2.8.1