sh: Optimize setprompt(0).
Avoid doing work to print an empty prompt (such as when reading scripts).
This commit is contained in:
parent
5036353a49
commit
c39f3bac71
@ -1930,6 +1930,8 @@ static void
|
||||
setprompt(int which)
|
||||
{
|
||||
whichprompt = which;
|
||||
if (which == 0)
|
||||
return;
|
||||
|
||||
#ifndef NO_HISTORY
|
||||
if (!el)
|
||||
|
Loading…
Reference in New Issue
Block a user