mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-05 04:30:38 +03:00
If terminating interactive input to the command-line shell with ^D, issue
an extra \n to move the cursor to the next line before exiting. FossilOrigin-Name: feff1ef0b8f7b51ae80a9d34380b46a5103bf6cd
This commit is contained in:
@@ -2572,7 +2572,9 @@ static int process_input(struct callback_data *p, FILE *in){
|
||||
free(zLine);
|
||||
zLine = one_input_line(zSql, in);
|
||||
if( zLine==0 ){
|
||||
break; /* We have reached EOF */
|
||||
/* End of input */
|
||||
if( stdin_is_interactive ) printf("\n");
|
||||
break;
|
||||
}
|
||||
if( seenInterrupt ){
|
||||
if( in!=0 ) break;
|
||||
|
||||
Reference in New Issue
Block a user