*highlight: Unneeded "$" in arithmetic context

This commit is contained in:
Sebastian Gniazdowski 2016-10-25 20:50:02 +02:00
parent ca2e333cfd
commit 8c2018bcb4

View file

@ -602,7 +602,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
local pos style_pathsep
style_pathsep=${style}_pathseparator
[[ -z "$HSMW_HIGHLIGHT_STYLES[$style_pathsep]" || "$HSMW_HIGHLIGHT_STYLES[$style]" == "$HSMW_HIGHLIGHT_STYLES[$style_pathsep]" ]] && return 0
for (( pos = start_pos; $pos <= end_pos; pos++ )) ; do
for (( pos = start_pos; pos <= end_pos; pos++ )) ; do
# ADD
[[ ${buf[pos]} == "/" ]] && reply+=("$(( pos - 1 )) $pos ${HSMW_HIGHLIGHT_STYLES[$style_pathsep]}")
done