[ 1933141 ] Don't add duplicate history lines (U.Bonnes)

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1155 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent 48c46c172c
commit d89edeac62

@ -1,6 +1,7 @@
2008-04-09 Kolja Waschk <kawk>
* src/tap/cable/usbblaster.c: [ 1934843 ] Fix for USBBLASTER (U.Bonnes)
* src/jtag.c: [ 1933141 ] Don't add duplicate history lines (U.Bonnes)
2008-04-03 Kolja Waschk <kawk>

@ -193,8 +193,8 @@ jtag_readline_loop( chain_t *chain, const char *prompt )
}
#ifdef HAVE_READLINE_HISTORY
/* Check if we actually got something */
if (strlen( line ))
/* Check if we actually got something , Don't add duplicate lines*/
if (strlen( line ) &&( !history_length ||strcmp(line,history_get(history_length)->line)))
add_history( line );
#endif
}

Loading…
Cancel
Save