aboutsummaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2019-09-10 13:55:44 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2019-09-10 13:55:44 +0000
commit3150625201d9c293e5c34b19b8a2d48a27da5f07 (patch)
tree4b83d615adb9f3870c56fd4e3caf62956df0f12c /common.c
parent8c36b0434ca4a5ba6df2724542048eb219af7a34 (diff)
downloadsrc-3150625201d9c293e5c34b19b8a2d48a27da5f07.tar.gz
src-3150625201d9c293e5c34b19b8a2d48a27da5f07.zip
Update libedit to snapshot 2019-09-10vendor/NetBSD/libedit/2019-09-10
Notes
Notes: svn path=/vendor/NetBSD/libedit/dist/; revision=352134 svn path=/vendor/NetBSD/libedit/2019-09-10/; revision=352135; tag=vendor/NetBSD/libedit/2019-09-10
Diffstat (limited to 'common.c')
-rw-r--r--common.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/common.c b/common.c
index 270860510b80..bc6c057cf51d 100644
--- a/common.c
+++ b/common.c
@@ -1,4 +1,4 @@
-/* $NetBSD: common.c,v 1.47 2016/05/22 19:44:26 christos Exp $ */
+/* $NetBSD: common.c,v 1.48 2018/02/26 17:36:14 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)common.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: common.c,v 1.47 2016/05/22 19:44:26 christos Exp $");
+__RCSID("$NetBSD: common.c,v 1.48 2018/02/26 17:36:14 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -363,15 +363,17 @@ ed_prev_char(EditLine *el, wint_t c __attribute__((__unused__)))
* [^V] [^V]
*/
libedit_private el_action_t
-ed_quoted_insert(EditLine *el, wint_t c)
+/*ARGSUSED*/
+ed_quoted_insert(EditLine *el, wint_t c __attribute__((__unused__)))
{
int num;
+ wchar_t ch;
tty_quotemode(el);
- num = el_wgetc(el, &c);
+ num = el_wgetc(el, &ch);
tty_noquotemode(el);
if (num == 1)
- return ed_insert(el, c);
+ return ed_insert(el, ch);
else
return ed_end_of_file(el, 0);
}