Skip to content

Commit

Permalink
Merge pull request #2114 from NoahGorny/fix-preview
Browse files Browse the repository at this point in the history
Fix bash-it preview
  • Loading branch information
NoahGorny authored Mar 8, 2022
2 parents 23ac376 + 13531c9 commit a6fd930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/preview.bash
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function _bash-it-preview() {
# shellcheck disable=SC2034
for BASH_IT_THEME in "${themes[@]}"; do
BASH_IT_LOG_LEVEL=0
bash --init-file "${BASH_IT_BASHRC:-${BASH_IT?}/bash_it.sh}" -i <<< '_bash-it-flash-term "${#BASH_IT_THEME}" "${BASH_IT_THEME}"'
bash --init-file "${BASH_IT?}/bash_it.sh" -i <<< '_bash-it-flash-term "${#BASH_IT_THEME}" "${BASH_IT_THEME}"'
done
}

Expand Down
2 changes: 1 addition & 1 deletion lib/search.bash
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ function _bash-it-flash-term() {
local -i len="${1:-0}" # redundant
local term="${2:-}"
# as currently implemented, `$match` has already been printed to screen the first time
local delay=0.1
local delay=0.2
local color
[[ "${#term}" -gt 0 ]] && len="${#term}"

Expand Down

0 comments on commit a6fd930

Please sign in to comment.