lexical #3/6, rewrite
This commit is contained in:
parent
5656203a6c
commit
c73c0f4318
|
|
@ -351,12 +351,12 @@ prompt(void)
|
||||||
|
|
||||||
if (cp_interactive == FALSE)
|
if (cp_interactive == FALSE)
|
||||||
return;
|
return;
|
||||||
if (cp_promptstring == NULL)
|
|
||||||
s = "-> ";
|
|
||||||
else
|
|
||||||
s = cp_promptstring;
|
|
||||||
if (cp_altprompt)
|
if (cp_altprompt)
|
||||||
s = cp_altprompt;
|
s = cp_altprompt;
|
||||||
|
else if (cp_promptstring)
|
||||||
|
s = cp_promptstring;
|
||||||
|
else
|
||||||
|
s = "-> ";
|
||||||
while (*s) {
|
while (*s) {
|
||||||
switch (strip(*s)) {
|
switch (strip(*s)) {
|
||||||
case '!':
|
case '!':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue