From 4bd39c66f1fa8defcd0fd26d9dd580964816a9c0 Mon Sep 17 00:00:00 2001 From: pright Date: Thu, 7 Feb 2013 21:34:20 +0800 Subject: [PATCH] Fixed displaying wrong order number when executing in a small terminal window. --- packer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer b/packer index efea352..93cbee4 100644 --- a/packer +++ b/packer @@ -615,7 +615,7 @@ if [[ $option = search || $option = searchinstall ]]; then if [[ $option = search ]]; then echo -e "$results" | fmt -"$_WIDTH" -s else # interactive - echo -e "$results" | fmt -"$_WIDTH" -s | nl -v 0 -w 1 -s ' ' -b 'p^[^ ]' + echo -e "$results" | nl -v 0 -w 1 -s ' ' -b 'p^[^ ]' | fmt -"$_WIDTH" -s fi | sed '/^$/d' pacname=( $(pacman -Ssq -- "${packageargs[@]}") ) pactotal="${#pacname[@]}"