Displaying 1 result from an estimated 1 matches for "readline_addtohistory".
2002 Jul 10
0
history patch (was Re: portable snprintf implementation)
...system such that
subsequent identical lines are only entered once.
*** src/unix/sys-std.c.orig Sat Jun 29 19:16:31 2002
--- src/unix/sys-std.c Wed Jul 10 16:23:59 2002
***************
*** 324,331 ****
return;
if (line[0]) {
# ifdef HAVE_READLINE_HISTORY_H
! if (strlen(line) && readline_addtohistory)
! add_history(line);
# endif
l = (((readline_len-2) > strlen(line))?
strlen(line): (readline_len-2));
--- 324,353 ----
return;
if (line[0]) {
# ifdef HAVE_READLINE_HISTORY_H
! if (strlen(line) && readline_addtohistory){
! static char called=0;
! /* RJV...