lexical #3/6, rewrite

This commit is contained in:
rlar 2012-08-03 20:12:58 +02:00
parent 5656203a6c
commit c73c0f4318
1 changed files with 4 additions and 4 deletions

View File

@ -351,12 +351,12 @@ prompt(void)
if (cp_interactive == FALSE)
return;
if (cp_promptstring == NULL)
s = "-> ";
else
s = cp_promptstring;
if (cp_altprompt)
s = cp_altprompt;
else if (cp_promptstring)
s = cp_promptstring;
else
s = "-> ";
while (*s) {
switch (strip(*s)) {
case '!':