Quit on EOF from terminal instead of redisplaying the prompt.
This commit is contained in:
parent
27dc3a2b96
commit
e97781bf25
@ -169,7 +169,7 @@ cmdscanner()
|
||||
el_source(el, NULL);
|
||||
}
|
||||
if ((bp = el_gets(el, &num)) == NULL || num == 0)
|
||||
return;
|
||||
quit(0, NULL);
|
||||
|
||||
len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num;
|
||||
memcpy(cmdline, bp, len);
|
||||
|
Loading…
Reference in New Issue
Block a user