Get your taxes done using TurboTax

yes.  the way the law looks at it is that you actually received the income and then put it back to buy more shares.  this law has been on the books for decades.

also under the law, short-term distributions are treated as ordinary dividends not even as STCG.