long term capital gain or short term capital gain

I bought a stock at $10, hold it for over a year.  The stock now is trading at $22 last month.  Instead of selling the stock directly, I sold some covered calls at strike price of $20, with a premium of $3 each, expiring in the same month as I sold the calls.  Stocks got called away at $20 as a result. 

 

So can I still treat the capital gain from the stock "sale" (bought at $10, call option exercised at $20) as long term gain?

 

Thanks!

Roger