Hold shift and make a right click on a merchant item to buy exact numbers and with a 10 digits limit for the biggest value.
So if you want to fill up a stack it's now possible and you are no longer limited of how much you can buy at once from the game. The only real limit is your bag space and your money.

