Steps to reproduce
Copy this table into a new note:
| aaa |
| --------------- |
| bbbbbb |
| ccccccccc |
| ddddddddd |
| eeeeeeeeeeee |
| fffffffffffffff |
Then edit one of the cells, except the first or the last cell, for example by adding a highlight (I selected the bbbbbb
and pressed =
twice).
Then alternatingly press ⌘Z and ⇧⌘Z.
Did you follow the troubleshooting guide? [Y/N]
Y
Expected result
After pressing undo and redo several times I should end up where I was before.
Actual result
First a space is added at the start of the cell that was edited. Then markup/content from subsequent rows keeps getting added to the cell.
If I click outside the table and press undo/redo again it usually resolves itself.
Also, sometimes the undo and redo shortcuts stop having any effect at all until I click somewhere outside the table. Even then, pressing ⌘Z and ⇧⌘Z does not always return me to the same state, sometimes causing the edited cell to appear blank.
Environment
SYSTEM INFO:
Obsidian version: v1.5.12
Installer version: v1.5.3
Operating system: Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103 23.4.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
It seems to have something to do with subsequent rows/cells being longer. When they are the same length or shorter, the bug did not happen in my tests.