If a list is un-done, then the text gets appended after the list
- Dominant language
- Rust
- Stars
- 30.5k
- Forks
- 3.2k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 72
Description
# Steps to Reproduce
1. Click **Add**.
2. Type a random string into a field, like `Hello World`.
3. Press Ctrl+Z to undo.
4. The list persists and the now re-done entry gets appended (html becomes `
- Hello World
# Expected Behavior
The list should be replaced by the previous content of the field, i.e. the content that is now re-done.
# Actual Behavior
The list stays and the previous content gets appended.
# Versions
It goes back to at least 24.11 (87ccd24e), but is still present with the current build from main from today: Anki 25.05 (d3d6bd8ce006f178e2271fd8d317fdc8832095df)
_
Anki 25.05 (8fc822a6) (src) (ao) → My git is at d3d6bd8ce006f178e2271fd8d317fdc8832095df, not sure why Anki reports the wrong commit. **Edit:** Deleting `out/buildhash` solved the incorrect hash issue. No idea why that was neccessary, though. **Edit 2:** [Here](https://forums.ankiweb.net/t/the-buildhash-isnt-updating-properly-e-g-after-checking-out-another-branch-is-this-intended-behavior-or-a-bug/61066/2?u=anon_0000)'s why that was neccessary.
Originially reported in https://forums.ankiweb.net/t/anki-25-05-beta/59710/52?u=anon_0000.
Contributor guide
Research direction
Start by reproducing the Ctrl+Z behavior using the listed steps and inspect the resulting HTML for the ordered list and duplicated text. Done means undo replaces the list with the field's previous content rather than appending the re-done entry after it; verify this against the stated Anki versions and current main build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100