Undo/redo should place the cursor or select something

Describe the bug

Currently, when undo/redo is used the cursor disappears completely. The cursor is not placed again and nothing is selected after using undo/redo.

To Reproduce

For contrast, also try both instruction sets in another editor.

For cursor placement:

    1. Type some text
    1. Use CTRL+Z to undo
    1. Use CTRL+Shift+Z to redo

For selection:

    1. Select a word or block and delete it
    • or change the color of a block
    • or drag one or more blocks somewhere else
    1. Use CTRL+Z to undo

Expected behavior

The cursor should be placed to where it was at that time in the history, if the change was made through typing with a cursor.

In the case the action was done through selecting something (e.g. changing color, deleting a word, dragging blocks, cutting text) the changed parts should be selected (this is how most editors behave, e.g. Notion, Word or even this editor).


  • OS: Ubuntu
  • Version: 0.18.68
1 Like

@lorenztiel Thank you for your notice! It has been added to the bug tracker