Skip to content

Cursor jumps to the top when pressing j or Ctrl-D on an empty last line #59

@basyura

Description

@basyura

Description

When the cursor is on an empty last line, pressing j or <C-d> in normal
mode scrolls the note to the top unexpectedly.

I am not sure whether this is an issue in inkdrop-vim, CodeMirror, or the
CodeMirror Vim integration layer.

Steps to Reproduce

  1. Open a note with multiple lines.
  2. Make sure the last line is empty.
  3. Move the cursor to the empty last line in normal mode.
  4. Press j or <C-d>.

Expected Behavior

The cursor should stay on the empty last line, and the note should not scroll
to the top.

Actual Behavior

The note scrolls to the top unexpectedly.

Environment

  • Inkdrop version: v6.0.0-canary.15
  • inkdrop-vim version: 3.1.2
  • OS: Sequoia 15.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions