From 10bc386b5839b8245dbc6732c39cd818641aa50b Mon Sep 17 00:00:00 2001 From: anton Date: Mon, 18 Dec 2017 19:04:53 +0000 Subject: [PATCH] Add another pair of home/end key bindings; from Lari Rasku. ok jca@ --- bin/ksh/emacs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.20.1