Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit PR/43998, PR/44021: In narrow history emulation, ...
details: https://anonhg.NetBSD.org/src/rev/0943a520a5cb
branches: trunk
changeset: 758423:0943a520a5cb
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 04 13:53:12 2010 +0000
description:
PR/43998, PR/44021: In narrow history emulation, don't treat UTF-8 character
sets specially as far as history goes since we always need to do the conversion
from narrow [history] to wide [editline].
diffstat:
lib/libedit/eln.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r f4bdfe39cdf7 -r 0943a520a5cb lib/libedit/eln.c
--- a/lib/libedit/eln.c Thu Nov 04 13:45:30 2010 +0000
+++ b/lib/libedit/eln.c Thu Nov 04 13:53:12 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: eln.c,v 1.8 2010/08/28 15:44:59 christos Exp $ */
+/* $NetBSD: eln.c,v 1.9 2010/11/04 13:53:12 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.8 2010/08/28 15:44:59 christos Exp $");
+__RCSID("$NetBSD: eln.c,v 1.9 2010/11/04 13:53:12 christos Exp $");
#endif /* not lint && not SCCSID */
#include "histedit.h"
@@ -217,8 +217,7 @@
hist_fun_t fun = va_arg(ap, hist_fun_t);
ptr_t ptr = va_arg(ap, ptr_t);
ret = hist_set(el, fun, ptr);
- if (!(el->el_flags & CHARSET_IS_UTF8))
- el->el_flags |= NARROW_HISTORY;
+ el->el_flags |= NARROW_HISTORY;
break;
}
/* XXX: do we need to change el_rfunc_t? */
Home |
Main Index |
Thread Index |
Old Index