anki icon indicating copy to clipboard operation
anki copied to clipboard

If a list is un-done, then the text gets appended after the list

Open GithubAnon0000 opened this issue 7 months ago • 4 comments

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 <ol><li>Hello World</li></ol>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's why that was neccessary.

Originially reported in https://forums.ankiweb.net/t/anki-25-05-beta/59710/52?u=anon_0000.

GithubAnon0000 avatar May 16 '25 18:05 GithubAnon0000

Hi @dae , I'd like to start working on this issue. Is anyone currently looking into it?

fcolona avatar Jul 07 '25 05:07 fcolona

As far as I know noone is currently working on this.

GithubAnon0000 avatar Jul 07 '25 11:07 GithubAnon0000

Hello! I would like to take a look at this issue, is anyone working on it now?

JMannervik avatar Sep 22 '25 11:09 JMannervik

Unless @fcolona returned to it, noone is working on this issue yet.

GithubAnon0000 avatar Sep 22 '25 17:09 GithubAnon0000