Fix cursor getting stuck while moving up / down
Cursor gets stuck when moving up with dynamic wrapping on because the calculated column sometimes turns out to be the same on which we are already on.
I have added a simple example to easily reproduce and test this, this example will be removed if the patch is correct and ready to be accepted and would ideally be turned into a test case.