Displaying 1 result from an estimated 1 matches for "readline_len".
2002 Jul 10
0
history patch (was Re: portable snprintf implementation)
...*** 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;
! /* RJVB: Only add lines that are not identical to the previous lin...