Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit ^W is traditionally bound to ed-delete-prev-word...



details:   https://anonhg.NetBSD.org/src/rev/9a7f7c98467e
branches:  trunk
changeset: 985524:9a7f7c98467e
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 29 09:41:59 2021 +0000

description:
^W is traditionally bound to ed-delete-prev-word and not kill-region
^R is traditionally bound to em-inc-search-next and not redisplay
This is what mksh, zsh bash, readline do (Baptiste Daroussin)

diffstat:

 lib/libedit/map.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r cdd44bd38f73 -r 9a7f7c98467e lib/libedit/map.c
--- a/lib/libedit/map.c Sun Aug 29 09:29:32 2021 +0000
+++ b/lib/libedit/map.c Sun Aug 29 09:41:59 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: map.c,v 1.53 2020/03/30 06:54:37 ryo Exp $     */
+/*     $NetBSD: map.c,v 1.54 2021/08/29 09:41:59 christos Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)map.c      8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: map.c,v 1.53 2020/03/30 06:54:37 ryo Exp $");
+__RCSID("$NetBSD: map.c,v 1.54 2021/08/29 09:41:59 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -85,12 +85,12 @@
        /*  15 */       ED_IGNORE,              /* ^O */
        /*  16 */       ED_PREV_HISTORY,        /* ^P */
        /*  17 */       ED_IGNORE,              /* ^Q */
-       /*  18 */       ED_REDISPLAY,           /* ^R */
+       /*  18 */       EM_INC_SEARCH_PREV,     /* ^R */
        /*  19 */       ED_IGNORE,              /* ^S */
        /*  20 */       ED_TRANSPOSE_CHARS,     /* ^T */
        /*  21 */       EM_KILL_LINE,           /* ^U */
        /*  22 */       ED_QUOTED_INSERT,       /* ^V */
-       /*  23 */       EM_KILL_REGION,         /* ^W */
+       /*  23 */       ED_DELETE_PREV_WORD,    /* ^W */
        /*  24 */       ED_SEQUENCE_LEAD_IN,    /* ^X */
        /*  25 */       EM_YANK,                /* ^Y */
        /*  26 */       ED_IGNORE,              /* ^Z */



Home | Main Index | Thread Index | Old Index