[#438] Fix cursor behaviour in different situations
Description
There are several cases where a cursor behaved weirdly or inadequately.
It's based on #293 (closed) to make rebase easier. I will rebase it on master as soon as #293 (closed) merged.
Related issue(s)
Resolves #438 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Ilya Peresadin