Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

.safe keymap doesn't use builtin widgets?



Currently, the ".safe" keymap is:

    % bindkey -LM .safe
    bindkey -R -M .safe "^@"-"^I" self-insert
    bindkey -M .safe "^J" accept-line
    bindkey -R -M .safe "^K"-"^L" self-insert
    bindkey -M .safe "^M" accept-line
    bindkey -R -M .safe "^N"-"\M-^?" self-insert

Shouldn't it use the dot-prefixed versions of self-insert and
accept-line, so that for example the following wouldn't lock the user
out:

    % self-insert() {} 
    % zle -N self-insert; bindkey -A .safe main
    % 

?



Messages sorted by: Reverse Date, Date, Thread, Author