]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: improve emacs mode
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 30 Mar 2021 09:37:29 +0000 (11:37 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 5 May 2021 07:16:23 +0000 (09:16 +0200)
commit2f2bbc485f2263ab8eb9d272a22d32c06f9e94e9
tree1cf9972f6bbd48133c6e0b54d5faaafe9c5c23bd
parent5a37780dd84c61bd9a3ad92e2dbe3f4e3116c671
sh: improve emacs mode

In emacs mode, force ^R to backware search the history
This behaviour is the default in emacs mode for most of the other shells

Note: Note that this can still be overridden via $EDITRC, ~/.editrc or a
bind command after set -o emacs.

Approved by: jilles
Reviewed by: jilles, arichardson, pstef
Differential Revision: https://reviews.freebsd.org/D29494

(cherry picked from commit 660045fb5360d328da199ae78c89d5cc15b6d1ca)
bin/sh/histedit.c