summaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-05-25 09:36:22 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-05-25 09:36:22 +0000
commitb4d65bcaca0389a6069e0fd134df3ae204b5b78d (patch)
tree706224fc9a4bc81da1781ab42886bdc8e1400d5e /lib/libedit
parent0c2ab6ddf9dc62282240b2e009c08a56ca02fa48 (diff)
el_map.alt can never be NULL, delete dead code
OK czarkoff@
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/read.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c
index dc288825980..d2e73263e21 100644
--- a/lib/libedit/read.c
+++ b/lib/libedit/read.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: read.c,v 1.43 2016/05/25 09:23:49 schwarze Exp $ */
-/* $NetBSD: read.c,v 1.97 2016/05/22 19:44:26 christos Exp $ */
+/* $OpenBSD: read.c,v 1.44 2016/05/25 09:36:21 schwarze Exp $ */
+/* $NetBSD: read.c,v 1.100 2016/05/24 19:31:27 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -260,8 +260,6 @@ read_getcmd(EditLine *el, el_action_t *cmdnum, wchar_t *ch)
break;
}
}
- if (el->el_map.alt == NULL)
- el->el_map.current = el->el_map.key;
} while (cmd == ED_SEQUENCE_LEAD_IN);
*cmdnum = cmd;
return 0;