[bug]: Cursor misalignment occurs when displaying inline code in Markdown under word wrap
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
Research direction
Start by reproducing the issue in the terminal editor with Markdown, word wrap enabled, and inline code on the document's last line; compare behavior with word wrap disabled and after entering a space or committing Chinese IME text. Trace the terminal rendering and wrapping path, then verify that cursor alignment remains correct in all described cases.
Written by the indexing model from the issue text.
Description
When the language mode is set to Markdown, with word wrap enabled and inline code used, the software displays misalignment as shown in the video. The misalignment disappears when a space is entered. For Chinese input, the misalignment also disappears after the candidate text is committed via the IME. This issue does not occur when word wrap is disabled.
https://github.com/user-attachments/assets/c936b175-bafa-4ed0-8e31-85e8a64ee399
This phenomenon only happens when the inline code is on the last line of the current document.
Edit version: 2.0.0
Terminal version: 1.24.11911.0
- Dominant language
- Rust
- Stars
- 14.6k
- Forks
- 735
- Avg merge
- 8h 40m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/edit
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100