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);
|
||||
break;
|
||||
case 'c':
|
||||
if (p++)
|
||||
cmd_start = p;
|
||||
while (p++ && *p != '\0' && *p != '\n' && *p != '\\')
|
||||
;
|
||||
cmd_start = ++p;
|
||||
while (*p != '\0' && *p != '\n' && *p != '\\')
|
||||
p++;
|
||||
continue;
|
||||
case 'e':
|
||||
cmd_area_end (screen, pos_x, align);
|
||||
|
|
Loading…
Reference in New Issue
Block a user