Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

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

Closed

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

Activity

  1. craftzdog commented on May 11, 2026

    @craftzdog
    Contributor

    It looks like a Vim extension's bug, and it's been fixed already: replit/codemirror-vim#258
    but hasn't been published yet.
    I'll update the package when a fixed version is available.

  2. craftzdog commented on Aug 12, 2026

    @craftzdog
    Contributor
  3. basyura commented on Aug 12, 2026

    @basyura
    ContributorAuthor

    It's fixed now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions