fixed spellcheck and minor issues for release
This commit is contained in:
+3
-1
@@ -35,6 +35,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Common helpers (helpers/common.sh)
|
||||
# shellcheck source=../helpers/common.sh
|
||||
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
|
||||
|
||||
load_conf disp
|
||||
@@ -187,7 +188,8 @@ disp()
|
||||
# Only a real ESC or a literal backslash can start an ANSI sequence;
|
||||
# testing this first avoids copying the message tail (and running
|
||||
# the regex) for every ordinary character.
|
||||
if [[ $_c == $'\e' || $_c == '\' ]]; then
|
||||
# shellcheck disable=SC1003 # a literal backslash
|
||||
if [[ $_c == $'\e' || $_c == '\' ]]; then
|
||||
local _sub=${message:_i}
|
||||
if [[ $_sub =~ ^($ansi_re) ]]; then
|
||||
line+=${BASH_REMATCH[0]}
|
||||
|
||||
Reference in New Issue
Block a user