From: anton Date: Mon, 18 Dec 2017 19:04:53 +0000 (+0000) Subject: Add another pair of home/end key bindings; from Lari Rasku. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=10bc386b5839b8245dbc6732c39cd818641aa50b;p=openbsd Add another pair of home/end key bindings; from Lari Rasku. ok jca@ --- diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c index 07bfbd91458..a990e12ddf9 100644 --- a/bin/ksh/emacs.c +++ b/bin/ksh/emacs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emacs.c,v 1.75 2017/11/26 20:34:15 jca Exp $ */ +/* $OpenBSD: emacs.c,v 1.76 2017/12/18 19:04:53 anton Exp $ */ /* * Emacs-like command line editing and history @@ -1536,6 +1536,8 @@ x_init_emacs(void) kb_add(x_mv_end, NULL, CTRL('['), 'O', 'F', 0); /* end */ kb_add(x_mv_begin, NULL, CTRL('['), '[', '1', '~', 0); /* home */ kb_add(x_mv_end, NULL, CTRL('['), '[', '4', '~', 0); /* end */ + kb_add(x_mv_begin, NULL, CTRL('['), '[', '7', '~', 0); /* home */ + kb_add(x_mv_end, NULL, CTRL('['), '[', '8', '~', 0); /* end */ /* can't be bound */ kb_add(x_set_arg, NULL, CTRL('['), '0', 0);