]> 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:17:09 +0000 (09:17 +0200)
commit2abb724cad0faac54dcab7155c684afa724cb3d5
tree236cb1413231658d0e8dd42cace76ece8b61f4c8
parent2941198570cde6357de80064d70bcafdbef17353
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