mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
*highlight: Properly handle tokens with :. Don't add future tokens
This commit is contained in:
parent
35058d6632
commit
3d2ac47621
1 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
fi
|
||||
fi
|
||||
|
||||
[[ -z "$REPLY" ]] && REPLY="${$(LC_ALL=C builtin type -w -- $1 2>/dev/null)#*: }"
|
||||
[[ -z "$REPLY" ]] && REPLY="${$(LC_ALL=C builtin type -w -- $1 2>/dev/null)##*: }"
|
||||
|
||||
__hsmw_highlight_main__command_type_cache[(e)$1]=$REPLY
|
||||
}
|
||||
|
@ -488,7 +488,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
;;
|
||||
*)
|
||||
# ADD
|
||||
reply+=("$start_pos $end_pos commandtypefromthefuture-$REPLY")
|
||||
# reply+=("$start_pos $end_pos commandtypefromthefuture-$REPLY")
|
||||
already_added=1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue