preventing from unwanted output.
This commit is contained in:
parent
fc9310966e
commit
2f223a46e0
1 changed files with 2 additions and 3 deletions
5
smu.c
5
smu.c
|
@ -444,11 +444,10 @@ dosurround(const char *begin, const char *end, int newblock) {
|
||||||
do {
|
do {
|
||||||
p = strstr(p + 1, surround[i].search);
|
p = strstr(p + 1, surround[i].search);
|
||||||
} while(p && p[-1] == '\\');
|
} while(p && p[-1] == '\\');
|
||||||
if(!p || p >= end)
|
if(!p || p >= end ||
|
||||||
|
!(stop = strstr(start, surround[i].search)) || stop >= end)
|
||||||
continue;
|
continue;
|
||||||
fputs(surround[i].before, stdout);
|
fputs(surround[i].before, stdout);
|
||||||
if(!(stop = strstr(start, surround[i].search)) || stop >= end)
|
|
||||||
continue;
|
|
||||||
if(surround[i].process)
|
if(surround[i].process)
|
||||||
process(start, stop, 0);
|
process(start, stop, 0);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue