lexical #2/19, rewrite the `else if'
This commit is contained in:
parent
f2f43bcce7
commit
ddebb63425
|
|
@ -185,12 +185,14 @@ gotchar:
|
||||||
if (i) {
|
if (i) {
|
||||||
buf[i] = '\0';
|
buf[i] = '\0';
|
||||||
cw->wl_word = copy(buf);
|
cw->wl_word = copy(buf);
|
||||||
} else if (cw->wl_prev) {
|
} else {
|
||||||
|
if (cw->wl_prev) {
|
||||||
cw->wl_prev->wl_next = NULL;
|
cw->wl_prev->wl_next = NULL;
|
||||||
tfree(cw);
|
tfree(cw);
|
||||||
} else {
|
} else {
|
||||||
cw->wl_word = NULL;
|
cw->wl_word = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
case '\'':
|
case '\'':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue