Incorrect Column Amount for afterCreateCol Hook

I was working with handsontable and noticed that the afterCreateCol hook seems to be malfunctioning when it is triggered using ctrl+z or hot.undo(). It seems to work as designed if you use the context menu to insert column left or right, but when I create columns using ctrl+z or hot.undo() after removing columns, the amount does not seem to be correct. Amount seems to be specifying the index of the last column inserted and not the amount of columns that were actually inserted.

I created a JSfiddle (http://jsfiddle.net/mountaineerfan5/pc3x0z6c/) as an example to reproduce the problem. If you remove multiple columns using the context menu and then do ctrl+z, the afterCreateCol amount is not producing the correct results. I have index and amount being console logged to check their values.

Thanks for your help.

Thanks for sharing @jameson
I can see what you mean. I guess that we have the exact issue reported at our Github board at: Wrong undo/redo behavior after inserting rows/columns · Issue #2743 · handsontable/handsontable · GitHub

but if not please feel free to add anything there. I’ve added your demo and a .gif that will show what we are getting.

Wrong number of columns in this situation