driver: Improve «unhandled ZLE widget 'foo'» error message.

Fixes #409.
This commit is contained in:
Daniel Shahaf 2017-03-05 14:36:41 +00:00
parent 237f89ad62
commit be083d7f37
1 changed files with 1 additions and 0 deletions

View File

@ -317,6 +317,7 @@ _zsh_highlight_bind_widgets()
else else
# Default: unhandled case. # Default: unhandled case.
print -r -- >&2 "zsh-syntax-highlighting: unhandled ZLE widget ${(qq)cur_widget}" print -r -- >&2 "zsh-syntax-highlighting: unhandled ZLE widget ${(qq)cur_widget}"
print -r -- >&2 "zsh-syntax-highlighting: (This is sometimes caused by doing \`bindkey <keys> ${(q-)cur_widget}\` without creating the ${(qq)cur_widget} widget with \`zle -N\` or \`zle -C\`.)"
fi fi
esac esac
done done