mirror of https://github.com/vector-im/riot-web
fix bug that prevented a line from being removed when undoing a newline
parent
9d49a5bb73
commit
abde8b45d2
|
@ -176,7 +176,7 @@ export function renderModel(editor, model) {
|
|||
}
|
||||
});
|
||||
if (lines.length) {
|
||||
removeNextSiblings(editor.children[lines.length]);
|
||||
removeNextSiblings(editor.children[lines.length - 1]);
|
||||
} else {
|
||||
removeChildren(editor);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue