Skip to content

Commit

Permalink
driver: Improve «unhandled ZLE widget 'foo'» error message.
Browse files Browse the repository at this point in the history
Fixes #409.
  • Loading branch information
danielshahaf committed Mar 5, 2017
1 parent 237f89a commit be083d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zsh-syntax-highlighting.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ _zsh_highlight_bind_widgets()
else
# Default: unhandled case.
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
esac
done
Expand Down

0 comments on commit be083d7

Please sign in to comment.