Skip to content

Helix Mode: incorrect new line above/below behavior #43210

@jrobsonchase

Description

@jrobsonchase

Summary

In helix mode, the new line above/below (O/o respectively) misbehaves in visual select and in HelixSelectLine mode.

Description

The new line commands misbehave in a few ways:

  1. With one or more lines selected with x, 'new line below' skips a line
  2. With one or more lines selected with x, 'new line above' adds a new line right above the selection as expected, but the cursor doesn't move.
  3. With visual select (v), neither new line command functions at all.

Steps to reproduce:

  1. Make a selection with either x or v
  2. Try to create a new line with o or O

Expected Behavior:
InsertLineAbove always creates a new line above the first line in your selection, and the cursor moves to the start of it.
InsertLineBelow always creates a new line below the last line in your selection, and the cursor moves to the start of it.

Actual Behavior:
In visual select mode, they're just nonfunctional.

In HelixSelectLine, "below" skips a line, and "above" fails to move the cursor.

Zed Version and System Specs

Zed: v0.213.3 (Zed)
OS: Linux X11 ubuntu 24.04
Memory: 62.3 GiB
Architecture: x86_64
GPU: Intel(R) Graphics (MTL) || Intel open-source Mesa driver || Mesa 25.0.7-0ubuntu0.24.04.2

If applicable, attach your Zed.log file to this issue.

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:parity/helixFeedback for Helix parity featuresfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P2Average run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions