Skip to content

Last character of IME marked text persists until extra backspace or new input #46084

@amtoaer

Description

@amtoaer

Reproduction steps

This issue seems to be specific to macOS; my testing shows that Windows is unaffected.


  1. Type pinyin in Zed terminal to generate marked text.
  2. Repeatedly press Backspace to delete the text.
  3. The last character of the marked text remains stuck in the terminal.
  4. Clear it by pressing Backspace once more, or by typing new characters to overwrite it.

Current vs. Expected behavior

Current behavior:

CleanShot.2026-01-05.at.23.46.42.mp4

Expected behavior:

The last character of the marked text should be deleted normally.

Zed version and system specs

Zed: v0.218.3+preview.104.4adf4c6c1dc3cad2cb35273ee707812c6874ac3b (Zed Preview)
OS: macOS 26.2
Memory: 24 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(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:integrations/terminalFeedback for terminal integration, shell commands, etccommunity championIssues filed by our amazing community champions! 🫶frequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcmeta:easy repro stepsSteps to reproduce are easyplatform:macOSPlatform-specific feedback for macOS behaviors, features, design, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions