lexical #1/3, move append(NULL) invokations into position

This commit is contained in:
rlar 2012-08-02 18:52:16 +02:00
parent 67e0cf0608
commit 042311d0c3
1 changed files with 7 additions and 3 deletions

View File

@ -240,7 +240,6 @@ gotchar:
case '\004':
case EOF:
append(NULL);
if (cp_interactive && !cp_nocc &&
(string == NULL)) {
if (j == 0) {
@ -253,9 +252,11 @@ gotchar:
fputs("quit\n", stdout);
cp_doquit();
}
append(NULL);
goto done;
}
// cp_ccom doesn't mess wlist, read only access to wlist->wl_word
append(NULL);
cp_ccom(wlist, buf, FALSE);
wl_free(wlist);
(void) fputc('\r', cp_out);
@ -273,9 +274,12 @@ gotchar:
if (cp_interactive) {
fputs("quit\n", stdout);
cp_doquit();
append(NULL);
goto done;
} else
return (NULL);
}
append(NULL);
return (NULL);
}
case ESCAPE:
if (cp_interactive && !cp_nocc) {