mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
*highlight: Optimization: don't support broken links as valid paths
parse.zsh -oo, after changes: Running time: 1.6690320000 num calls time self name ----------------------------------------------------------------------------------- 1) 350 1661,69 4,75 99,99% 1220,15 3,49 73,42% -hsmw-highlight-process 2) 2800 326,19 0,12 19,63% 326,19 0,12 19,63% -hsmw-highlight-string 3) 2450 72,28 0,03 4,35% 72,28 0,03 4,35% -hsmw-highlight-check-path 4) 1400 25,88 0,02 1,56% 25,88 0,02 1,56% -hsmw-highlight-main-type 5) 350 9,74 0,03 0,59% 9,74 0,03 0,59% -hsmw-highlight-stack-pop 6) 350 7,46 0,02 0,45% 7,46 0,02 0,45% -hsmw-highlight-path-separators 7) 1 0,07 0,07 0,00% 0,07 0,07 0,00% -hsmw-highlight-fill-option-variables 8) 1 0,02 0,02 0,00% 0,02 0,02 0,00% -hsmw-highlight-init
This commit is contained in:
parent
8c2018bcb4
commit
002e127eb2
1 changed files with 0 additions and 1 deletions
|
@ -616,7 +616,6 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
: ${expanded_path:=${(Q)~arg}}
|
||||
|
||||
[[ -z $expanded_path ]] && return 1
|
||||
[[ -L $expanded_path ]] && return 0
|
||||
[[ -e $expanded_path ]] && return 0
|
||||
|
||||
# Search the path in CDPATH
|
||||
|
|
Loading…
Reference in a new issue