When auras enables bu.gap, numTotal does not include the invisible button
For example, a total of 12 are displayed in one line. If there are both buffs and debuffs, one more will be displayed in the second line
Oh, I see where the issue is. I'll fix it within the next few days.
That said, when it gets fixed, there will be another "issue", let's say, you have 11 buffs and 1 debuffs with the numTotal being 12, what you'll get in the end will be 11 buffs, a gap, and 0 debuffs. It's not really a bug in this case, it'll be working as intended. The thing is the gap is more suitable for when you're showing multiple rows of buffs and debuffs, imho. With just 1 row, you might want to look into other ways of highlighting/telling what's a buff and what's a debuff.
-- edit
Alternatively, just cap the number of buffs you're showing and filter them more aggressively, so that stuff like that never happens.