Fix color theme numbering

pull/68/head
Deluxe 2020-04-28 11:11:33 +02:00 committed by aristocratos
parent fe6a028641
commit 41f40b5938
1 changed files with 1 additions and 2 deletions

View File

@ -794,8 +794,7 @@ get_themes() {
for file in "${theme_dir}"/*.theme; do
file="${file##*/}"
if [[ ${file} != "*.theme" ]]; then themes+=("${file%.theme}"); fi
if [[ ${themes[-1]} == "${color_theme}" ]]; then theme_int=$i; fi
((i++))
if [[ ${themes[-1]} == "${color_theme}" ]]; then theme_int=${#themes[@]}-1; fi
done
}