Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Fix wrapper for EL_EDITOR, from Michael L. Hitch



details:   https://anonhg.NetBSD.org/src/rev/641d66d8169a
branches:  trunk
changeset: 750953:641d66d8169a
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 19 22:38:08 2010 +0000

description:
Fix wrapper for EL_EDITOR, from Michael L. Hitch

diffstat:

 lib/libedit/eln.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 728f9307ac17 -r 641d66d8169a lib/libedit/eln.c
--- a/lib/libedit/eln.c Tue Jan 19 22:33:35 2010 +0000
+++ b/lib/libedit/eln.c Tue Jan 19 22:38:08 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eln.c,v 1.4 2010/01/12 19:40:50 christos Exp $ */
+/*     $NetBSD: eln.c,v 1.5 2010/01/19 22:38:08 christos Exp $ */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: eln.c,v 1.4 2010/01/12 19:40:50 christos Exp $");
+__RCSID("$NetBSD: eln.c,v 1.5 2010/01/19 22:38:08 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include "histedit.h"
@@ -118,6 +118,11 @@
                ret = el_wset(el, op, va_arg(ap, char *));
                break;
 
+       case EL_EDITOR:         /* const wchar_t * */
+               ret = el_wset(el, op, ct_decode_string(va_arg(ap, char *),
+                   &el->el_lgcyconv));
+               break;
+
        case EL_SIGNAL:         /* int */
        case EL_EDITMODE:
        case EL_UNBUFFERED:



Home | Main Index | Thread Index | Old Index