Mercurial > ~dholland > hg > tradcpp > index.cgi
diff macro.c @ 144:7ab3d0c09cd8
fix very minor bug
author | David A. Holland |
---|---|
date | Sat, 13 Jul 2013 13:54:07 -0400 |
parents | 2e1496dd96c4 |
children | a403605d3166 |
line wrap: on
line diff
--- a/macro.c Sat Jul 13 12:47:20 2013 -0400 +++ b/macro.c Sat Jul 13 13:54:07 2013 -0400 @@ -536,7 +536,7 @@ wordstart = pos; pos += strspn(buf+pos, alnum); if (isparam(m, buf+wordstart, pos-wordstart, ¶m)) { - if (pos > blockstart) { + if (wordstart > blockstart) { ei = expansionitem_create_stringlen( buf + blockstart, wordstart - blockstart);