microsoft / microsoft/edit

Bug in undo/redo with additional new lines

Open
#834 2 comments 0 reactions 0 assignees View on GitHub
C-bug E-help-wanted P-medium
Dominant language
Rust
Stars
14.6k
Forks
734
Avg merge
8h 40m
Merged PRs (30d)
4

Description

That little bug exists on Windows and Linux. In version 2.0.0 and 1.2.0.

First open a file with color emojis

Image
Image

Then writing fast and wild some "text".
Image
Image

Then Undo with Ctrl+Z or over the menu
Image
Image

And then redo with Ctrl+Y or over the menu
Image
Image

After the redo you have one or more new lines.
Possible with one single letter, which was before part of the longer "word"

Contributor guide

Open the contributing guide

Research direction

Reproduce the sequence on Windows or Linux: open a file containing color emojis, type quickly, then use Ctrl+Z and Ctrl+Y or the corresponding menu actions. Trace the undo/redo entry points and verify that redo restores the text without introducing additional new lines, including when the edited text is a single letter from a longer word.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.