Japanese IME: editor text appears duplicated when the line wraps

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When typing Japanese in the editor with word wrap enabled, the current line is drawn twice during IME composition. The wrapped portion of the sentence reappears on the next visual line, so the same text looks duplicated.

This is a display-only glitch. The file buffer is correct and is not actually duplicated. Reloading the window or turning word wrap off clears it.

It happens while composing Japanese with IME (before or while confirming conversion), especially on a long Markdown line that wraps mid-sentence.

Steps to Reproduce

Steps to Reproduce:

  1. Open a Markdown file.
  2. Turn on Editor: Word Wrap.
  3. Type a long Japanese sentence with IME until the line wraps.
  4. Keep composing / converting without confirming immediately.

Expected Behavior

Expected: one wrapped line, no duplicated text.
Actual: the wrapped segment is shown twice (ghosted / overlapping).

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.15.19 (Universal)
VS Code Extension API: 1.128.0
Commit: de07bee81cefe43461ebf4f40c3d2d78d15052a0
Date: 2026-08-11T05:22:54.627Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.5.0

For AI issues: which model did you use?

Cursor Grok 4.6

Additional Information

Possibly related (same IME + word wrap area, different symptom — that one is cursor jumping, this one is duplicated/ghosted text):

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report and the video. The symptom is clear: during IME composition on a wrapped line, the segment gets drawn twice (ghosting), but the actual file buffer is correct.

There’s a workaround that should remove the duplication. Try enabling the EditContext input path:

  • Open Settings with Cmd+Shift+,, then find editor.experimentalEditContextEnabled
  • Enable it, or add this to settings.json: "editor.experimentalEditContextEnabled": true
  • Reload the window via Cmd+Shift+P then run Reload Window

If that doesn’t work for some reason, a temporary fallback is to turn off Editor: Word Wrap, but yeah, that’s a compromise.

This isn’t caused by anything in your setup. I’ve passed it to the team and we’re tracking it. I’ll post an update here when I have one, and let me know if the EditContext workaround helped.

Hi Dean.

I set "editor.experimentalEditContextEnabled": true, reloaded the window, and the duplicated/ghosted Japanese text on wrapped lines is gone during IME composition. Appreciate you passing this on to the team as well.