Skip to content

After a "undo", "redo" doesn't work #2399

Closed

Description

@raphaelhuleux

Hello,

After an accidental "undo", the "redo" action is not available.

Activity

  1. liangkang1436 commented on Nov 30, 2020

    @liangkang1436

    i found “redo” doesn't work only when redo the text contain MarkDown syntax character, it works well to redo plain text

  2. hamza512b commented on Dec 1, 2020

    @hamza512b

    I just downloaded Marktext, same issue here.

  3. rohgar commented on Dec 19, 2020

    @rohgar

    Same here.

  4. dafadllyn commented on Sep 7, 2025

    @dafadllyn

    Unfortunately, i'm having the same problem. I pressed Ctrl+Z, which undid about half an hour's worth of typing, and now 'redo' does not work (neither the menu entry nor Ctrl+Shift+Z).

  5. added
    🐛 bug
    🪲 pri/major
    on May 16, 2026
  6. Jocs commented on Jun 23, 2026

    @Jocs
    Member

    Thank you for the report. The undo/redo system was completely rewritten as part of the migration to the new @muyajs/core editor engine. The new history module (packages/muya/src/history/index.ts) uses OT-based (ot-json1) undo/redo: when undo or redo runs it sets an _ignoreChange guard before applying the inverted operation, so the json-change listener cannot accidentally clear the redo stack mid-execution. The structural flaw in the old engine — where a re-render of markdown syntax characters could call push() and truncate forward history — no longer exists.

    If you can reproduce this issue with the current build (0.17+ using the new engine), please reopen with the exact steps and MarkText version. Otherwise we are closing this as resolved by the engine migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/major🐛 bug🔭 area/editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions