If there is empty lines, in visual mode, the cursor renders one line offset to the actual line.
Expected behavior
In the gif above, after pressing j, the cursor should be at the second line rather than the end of the first line. After pressing 2xj, the cursor should be at the third line rather than the second line.
Although the cursor get right after pressing 3xj, the behavior is weird that the cursor goes 2 lines downward at the last j stroke.
Description
If there is empty lines, in visual mode, the cursor renders one line offset to the actual line.![codemirror-vim](https://github.com/replit/codemirror-vim/assets/40470855/10c8b062-0406-42ab-b15c-d17e00834292)
Expected behavior
In the gif above, after pressing
j
, the cursor should be at the second line rather than the end of the first line. After pressing 2xj
, the cursor should be at the third line rather than the second line.Although the cursor get right after pressing 3x
j
, the behavior is weird that the cursor goes 2 lines downward at the lastj
stroke.Reproduce
This is another test.