HomeFreeBSD

sh: reset sh bindings on bind -e, bind -v

Description

sh: reset sh bindings on bind -e, bind -v

Until this change, any bindings set in histedit() were lost on calls to
bindcmd().

Only bind -e and bind -v call libedit's keymacro_reset(). Currently you
cannot fool libedit/map.c:map_bind() by trying something like bind -le
as when p[0] == '-', it does a switch statement on p[1].

(cherry picked from commit 9413dfd331e705a1d7909fe41f06a30e43c442f7)

Details

Provenance
pstefAuthored on Sep 19 2021, 8:17 PM
Parents
rGb2b7eb9e23dc: sh: improve command completion
Branches
Unknown
Tags
Unknown