diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 9521e7a..1a945bd 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -201,7 +201,7 @@ _SPCD_RULE_RIGHT="╴" _SPCD_STEP_LEVEL=1 -spcd_step_wipe() { +_spcd_step_wipe() { unset \ "SPCD_STEP_${_SPCD_STEP_LEVEL}_INDEX" \ "SPCD_STEP_${_SPCD_STEP_LEVEL}_LABEL" @@ -382,11 +382,11 @@ spcd_step() { spcd_step_in() { [ -n "${1}" ] && spcd_step "${1}" _SPCD_STEP_LEVEL=$((_SPCD_STEP_LEVEL + 1)) - spcd_step_wipe + _spcd_step_wipe } spcd_step_out() { - spcd_step_wipe + _spcd_step_wipe _SPCD_STEP_LEVEL=$((_SPCD_STEP_LEVEL - 1)) }