1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Do not record blank lines in the command-line editing history of the shell. (CVS 3197)

FossilOrigin-Name: 0eabda82cd0d476a7e05ba4b027b819318aef9c3
This commit is contained in:
drh
2006-06-03 17:37:25 +00:00
parent 94d57e3924
commit eb741d5dd2
3 changed files with 9 additions and 9 deletions

View File

@@ -12,7 +12,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
** $Id: shell.c,v 1.136 2006/05/10 14:39:14 drh Exp $
** $Id: shell.c,v 1.137 2006/06/03 17:37:26 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -197,7 +197,7 @@ static char *one_input_line(const char *zPrior, FILE *in){
}
zResult = readline(zPrompt);
#if defined(HAVE_READLINE) && HAVE_READLINE==1
if( zResult ) add_history(zResult);
if( zResult && *zResult ) add_history(zResult);
#endif
return zResult;
}