Skip to content

[BUG] <Tab> incorrectly inserts spaces when used on non-list lines #197

@ten3roberts

Description

@ten3roberts

Description

When pressing <Tab> on non-list lines, the line will be broken apart, with the text immediately after the cursor getting split in two, with new shiftwidth whitespace separating the two halves; one after, and one before the cursor.

Screencast.From.2026-01-02.23-34-59.mp4

Steps to Reproduce

  1. Type: This is a l|ine of text
  2. Press Tab at cursor (|)
  3. Spaces split the text incorrectly

Expected Behavior

Tab is inserted ahead of the cursor

Actual Behavior

Line breaks apart with spaces at incorrect positions

Environment

  • Neovim version: v0.12.0-dev-1898+g5a1a92cc7a
  • Plugin version: 05084a4
  • OS: Linux

Additional Context

Related to: #192

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions