[Midnightbsd-cvs] src [8569] trunk/lib/libedit/map.c: bind the correct command when using bind -k
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Sep 19 11:24:23 EDT 2016
Revision: 8569
http://svnweb.midnightbsd.org/src/?rev=8569
Author: laffer1
Date: 2016-09-19 11:24:23 -0400 (Mon, 19 Sep 2016)
Log Message:
-----------
bind the correct command when using bind -k
Modified Paths:
--------------
trunk/lib/libedit/map.c
Modified: trunk/lib/libedit/map.c
===================================================================
--- trunk/lib/libedit/map.c 2016-09-19 15:24:05 UTC (rev 8568)
+++ trunk/lib/libedit/map.c 2016-09-19 15:24:23 UTC (rev 8569)
@@ -1250,7 +1250,7 @@
char inbuf[EL_BUFSIZ];
char outbuf[EL_BUFSIZ];
const char *in = NULL;
- char *out = NULL;
+ char *out;
el_bindings_t *bp, *ep;
int cmd;
int key;
@@ -1368,7 +1368,7 @@
return (-1);
}
if (key)
- term_set_arrow(el, in, key_map_str(el, out), ntype);
+ term_set_arrow(el, in, key_map_cmd(el, cmd), ntype);
else {
if (in[1]) {
key_add(el, in, key_map_cmd(el, cmd), ntype);
More information about the Midnightbsd-cvs
mailing list