mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2025-02-16 11:08:23 +00:00
*highlight: Optimization: set noksharrays at main entry point (*process)
This commit is contained in:
parent
331df45fa7
commit
fb4c4b7b81
1 changed files with 1 additions and 3 deletions
|
@ -162,7 +162,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
||||||
integer multi_func_def=0
|
integer multi_func_def=0
|
||||||
fi
|
fi
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
setopt localoptions extendedglob bareglobqual nonomatch
|
setopt localoptions extendedglob bareglobqual nonomatch noksharrays
|
||||||
|
|
||||||
## Variable declarations and initializations
|
## Variable declarations and initializations
|
||||||
local start_pos=0 end_pos highlight_glob=true arg style
|
local start_pos=0 end_pos highlight_glob=true arg style
|
||||||
|
@ -663,7 +663,6 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
||||||
# Highlight special chars inside double-quoted strings
|
# Highlight special chars inside double-quoted strings
|
||||||
-hsmw-highlight-string()
|
-hsmw-highlight-string()
|
||||||
{
|
{
|
||||||
setopt localoptions noksharrays
|
|
||||||
local -a match mbegin mend
|
local -a match mbegin mend
|
||||||
|
|
||||||
local mybuf="$arg"
|
local mybuf="$arg"
|
||||||
|
@ -691,7 +690,6 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
||||||
# Highlight special chars inside dollar-quoted strings
|
# Highlight special chars inside dollar-quoted strings
|
||||||
-hsmw-highlight-dollar-string()
|
-hsmw-highlight-dollar-string()
|
||||||
{
|
{
|
||||||
setopt localoptions noksharrays
|
|
||||||
local -a match mbegin mend
|
local -a match mbegin mend
|
||||||
local MATCH; integer MBEGIN MEND
|
local MATCH; integer MBEGIN MEND
|
||||||
local i j k style
|
local i j k style
|
||||||
|
|
Loading…
Add table
Reference in a new issue