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

This bug is still there in some kind.
The cursor only appears after Ctrl+Z when pressing a key, like arrow down etc.

I’m typing “Hello”, removing the “o” with backspace and bring it back with the undo function. Then there is no cursor until I press arrow down.

Describe the bug

cursor not blink after undo or redo therefore have to use a mouse to continue writing

To Reproduce

Steps to reproduce the behaviour:

    1. type ctrl + z or ctrl + shift + z to undo or redo

Expected behavior

Cursor blinks and I can continue write

Desktop (please complete the following information):

  • OS: Windows 10
  • Device: Lenovo
  • Version: 0.17.2