Fix color theme numbering

pull/62/head
Deluxe 2020-04-28 11:11:33 +02:00
parent c910e2d423
commit d1b9b2f7eb
1 changed files with 1 additions and 2 deletions

View File

@ -757,8 +757,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
}