Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit remove the right history entry (Ingo Schwarze)



details:   https://anonhg.NetBSD.org/src/rev/765e5e95b69c
branches:  trunk
changeset: 345535:765e5e95b69c
user:      christos <christos%NetBSD.org@localhost>
date:      Tue May 31 19:25:17 2016 +0000

description:
remove the right history entry (Ingo Schwarze)

diffstat:

 lib/libedit/readline.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c46191a697e6 -r 765e5e95b69c lib/libedit/readline.c
--- a/lib/libedit/readline.c    Tue May 31 16:26:47 2016 +0000
+++ b/lib/libedit/readline.c    Tue May 31 19:25:17 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.c,v 1.133 2016/05/13 15:55:59 christos Exp $  */
+/*     $NetBSD: readline.c,v 1.134 2016/05/31 19:25:17 christos Exp $  */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.133 2016/05/13 15:55:59 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.134 2016/05/31 19:25:17 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -1190,7 +1190,7 @@
                if (max < len)
                        history_base += len - max;
                for (i = 0; i < len - max; i++) {
-                       he = remove_history(i);
+                       he = remove_history(0);
                        el_free(he->data);
                        el_free((void *)(unsigned long)he->line);
                        el_free(he);



Home | Main Index | Thread Index | Old Index