Perf: speed up _zsh_highlight_highlighter_main_paint

This commit is contained in:
Roman Perepelitsa 2020-08-16 15:01:07 +02:00
commit 818e2f2290
2 changed files with 246 additions and 203 deletions

View file

@ -91,6 +91,11 @@ _zsh_highlight_add_highlight()
region_highlight+=("$1 $2 $3")
}
_zsh_highlight_main_calculate_styles()
{
# Do nothing
}
# Activate the highlighter.
ZSH_HIGHLIGHT_HIGHLIGHTERS=($1)