04c3df512a
@guidovansteen discovered inconsistent behaviour when zsh-syntax-highlighting is not sourced prior to zsh-history-substring-search. https://github.com/zsh-users/zsh-history-substring-search/issues/9 @sunaku wrote this patch.