diff options
author | Eric Sandall | 2008-12-01 15:04:11 -0800 |
---|---|---|
committer | Eric Sandall | 2008-12-01 15:04:11 -0800 |
commit | f4217bd95d11374a126e009a5eba49e604322434 (patch) | |
tree | ec6b13c0e563138aa1272f27f5c19010b45de740 | |
parent | 67686a004d0364c94fd8b50d95d8716ec40f04d9 (diff) |
config_query_multi.function: fixed two issues, patch by Fredrik
Carlström #14914
someone please apply this to binary too; other grimoires don't use it
(cherry-picked from commit 87957f241f95b029983b5191dee7fccd7885f385)
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | config_query_multi.function | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2008-11-27 Jaka Kranjc <lynxlynxlynx@sourcemage.org> + * config_query_multi.function: fixed two issues, patch by Fredrik + Carlström #14914 + 2008-11-01 Julien "_kaze_" ROZO <julien@rozo.org> * kde4-apps/k9copy4: new spell, kde4 version of k9copy diff --git a/config_query_multi.function b/config_query_multi.function index 56afd52577..ca9d27f1b0 100755 --- a/config_query_multi.function +++ b/config_query_multi.function @@ -49,6 +49,7 @@ function select_list_sub_multi() { local default=$4 local __result=() j + local answer answer_parsed while [[ ! $__result ]] ; do message -n "$msgstr" @@ -101,6 +102,7 @@ function real_config_query_multi () { echo -e "[[ ${QUERY_COLOR}${QUESTION}${DEFAULT_COLOR} -> '${QUERY_COLOR}$ANSWER${DEFAULT_COLOR}' ]]" else # if there was an answer before, find it + local stuff=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) local defaults default default_num foo config_get_last_option "$VARIABLE" default [[ $default ]] || default="$1" @@ -108,7 +110,7 @@ function real_config_query_multi () { let i=0 for foo in "$@"; do if [[ "$defaults" == "$foo" ]] ; then - default_num="$default_num $i" + default_num="$default_num ${stuff[$i]}" fi let i++ done |