app.command.MoveMask error when wrapping with a value higher than sprite width

For context, I’m using Aseprite v1.3-beta5-x64 from Steam in Windows 10.

Hello! I’m working on an Aseprite script that uses app.command.MoveMask for shifting pixels in a selection and having them wrap around the selection boundary.

However, I found that, if the amount of pixels to shift for (labeled internally as quantity) is higher than the image width, rather than wrap the pixels around, it will instead just “paste” the new image while leaving the rest of the pixels “untouched” (that is, not repeated, not wrapped, but instead completely unaltered). Undoing the action will also break the original image by only restoring the original image partially, and leaving a section completely untouched.

Included below is an image that hopefully explains the bug and its results: