summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandall2008-12-01 15:04:11 -0800
committerEric Sandall2008-12-01 15:04:11 -0800
commitf4217bd95d11374a126e009a5eba49e604322434 (patch)
treeec6b13c0e563138aa1272f27f5c19010b45de740
parent67686a004d0364c94fd8b50d95d8716ec40f04d9 (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--ChangeLog4
-rwxr-xr-xconfig_query_multi.function4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 48d5d4de94..e2f4adae62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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