Open Bug 1795791 Opened 3 years ago Updated 8 months ago

Inserting a bullet or numbered list breaks undo history

Categories

(MailNews Core :: Composition, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: contact, Unassigned)

References

Details

(Keywords: dupeme)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Steps to reproduce:

Example 1:

  1. Type some text, e.g. "Testing 123"
  2. Change the text, e.g. to "Testing 321"
  3. On a new line, insert a bullet or numbered list.
  4. Press CTRL + Z several times to try undoing back to the text in step 1.

Example 2:

  1. Type 4 unique lines of text, e.g. "Line 1", "Line 2", "Line 3" and "Line 4"
  2. Select 3 lines, e.g. lines 2 to 4.
  3. Change the selected text to a bullet or numbered list using the toolbar.
  4. Press CTRL + Z several times to try undoing the above.
  5. Go into the Edit menu. Redo is greyed out.

Actual results:

Example 1:
Repeat Undo commands clears the list, but does not undo the text change made on step 2.

Example 2:
The first Undo operation deletes the last bullet point. Further Undo operations do nothing.
Edit -> Redo is greyed out, so is not possible to recover this deleted bullet point.

Expected results:

In Example 1, it should be possible to restore the text entered on step 1 with multiple undo operations.

In Example 2, the first Undo operation should have undone converting the selected lines of text into a list. The Redo operation should recover what was undone.

Component: Message Compose Window → Composition
Keywords: dupeme
Product: Thunderbird → MailNews Core
See Also: → 1861282
You need to log in before you can comment on or make changes to this bug.