Fix invalid condition

This commit is contained in:
ptrstr 2021-10-14 22:39:58 -04:00 committed by Enno T. Boland
parent ba5b3e53e2
commit e62f23808b

2
smu.c
View file

@ -528,7 +528,7 @@ dosurround(const char *begin, const char *end, int newblock) {
fputs(surround[i].before, stdout);
/* Single space at start and end are ignored */
if (stop - start > 2 && *start == ' ' && *(stop - 1) == ' ') {
if (stop - start > 1 && *start == ' ' && *(stop - 1) == ' ') {
start++;
stop--;
l++;