microsoft / microsoft/edit

Emoji breaks cursor position and blocks backspace

Open
#647 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
14.6k
Forks
734
Avg merge
8h 40m
Merged PRs (30d)
4

Description

In WSL, pasting the 'family' emoji via the Emoji Picker (Win+'.') misplaces the cursor position and blocks backspace.

Repro:
1. Run WSL profile in Windows Terminal
2. Run `edit`
3. Press Win+'.' for Emoji Picker
4. Paste the 'family: man, woman, girl, boy' emoji and press Esc
5. Check the cursor position and whether the backspace is working

Tested on Win11 and Win10.

https://github.com/user-attachments/assets/cbd3ffb7-c493-41c1-b431-4bae70685d53

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a WSL profile in Windows Terminal by running `edit` and pasting the family emoji through the Windows Emoji Picker. Verify the cursor position and backspace behavior before and after the fix; done means the cursor remains correct and backspace works normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.