Fix color theme numbering
parent
c910e2d423
commit
d1b9b2f7eb
3
bashtop
3
bashtop
|
@ -757,8 +757,7 @@ get_themes() {
|
||||||
for file in "${theme_dir}"/*.theme; do
|
for file in "${theme_dir}"/*.theme; do
|
||||||
file="${file##*/}"
|
file="${file##*/}"
|
||||||
if [[ ${file} != "*.theme" ]]; then themes+=("${file%.theme}"); fi
|
if [[ ${file} != "*.theme" ]]; then themes+=("${file%.theme}"); fi
|
||||||
if [[ ${themes[-1]} == "${color_theme}" ]]; then theme_int=$i; fi
|
if [[ ${themes[-1]} == "${color_theme}" ]]; then theme_int=${#themes[@]}-1; fi
|
||||||
((i++))
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue