trapd00r / zsh-syntax-highlighting-filetypes

zsh syntax highlighting with dircolors in realtime
155 stars 17 forks source link

fix an error: some keys with now impact on text displayed a permission denied #12

Open CharlesGueunet opened 5 years ago

CharlesGueunet commented 5 years ago

Hello, This PR add a new guard before triggering the $highlight_predicate: When pressing esc (to go out of vim insert mode), the function was trigger with an empty string leading to an annoying permission denied. I have just added a check that $highlight_predicate is not empty.

Charles