Clip duplicate after 2 moves, 2 undos, and 1 redo

A clip gets duplicated after 2 instances of move timeline clip, 2 undos, and 1 redo.
Interestingly, this bug only happens if the ripple trim and drop is off. If on, the problem doesn’t occur.

This bug still happens if a clip is moved across tracks or multiple clips are moved.

Tested on Windows.
Tested on v21.10.31.