Cleanup command parsing logic
This commit is contained in:
parent
1efcc61006
commit
0fb530e1a2
7
bar.c
7
bar.c
|
@ -326,10 +326,9 @@ parse (char *text)
|
||||||
cmd_area_begin (screen, pos_x, align);
|
cmd_area_begin (screen, pos_x, align);
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
if (p++)
|
cmd_start = ++p;
|
||||||
cmd_start = p;
|
while (*p != '\0' && *p != '\n' && *p != '\\')
|
||||||
while (p++ && *p != '\0' && *p != '\n' && *p != '\\')
|
p++;
|
||||||
;
|
|
||||||
continue;
|
continue;
|
||||||
case 'e':
|
case 'e':
|
||||||
cmd_area_end (screen, pos_x, align);
|
cmd_area_end (screen, pos_x, align);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user