Skip to content

Certain characters cause duplicate cursor action to incorrectly place cursor. #47724

@notwithering

Description

@notwithering

Reproduction steps

  1. Open markdown file
  2. Paste example:
panic: cycle detected:
        ┌→┌─/a.txt: {{include b.txt}}
        │ └→/b.txt: {{include c.txt}}
        └─└→/c.txt: {{include a.txt}}
  1. Place cursor at 2:13.
  2. Press Alt+Shift+Down (or your duplicate cursor down keybind).
  3. Visualize misaligned cursors

Current vs. Expected behavior

Current behavior

Duplcating the cursor down on lines with certain characters causes the new cursors to be misaligned.

Screencast_20260126_221650.webm

Expected behavior

Each duplicated cursor to be at the same character position.

Zed version and system specs

Zed: v0.220.5+stable (Zed)
OS: Linux Wayland arch unknown
Memory: 30.6 GiB
Architecture: x86_64
GPU: AMD Radeon RX 7800 XT (RADV NAVI32) || radv || Mesa 25.3.4-arch1.1

Attach Zed log file

No response

Relevant Zed settings

No response

Relevant Keymap

keymap.json
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
  {
    "context": "Workspace",
    "bindings": {
      // "shift shift": "file_finder::Toggle"
    }
  },
  {
    "context": "Editor",
    "bindings": {
      // "j k": ["workspace::SendKeystrokes", "escape"]
    }
  }
]

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:preview/markdownmarkdown previewfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:needs reproNeeds reproduction steps / someone to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions