浏览代码

Fix undo with line editing (#1717)

fujimoto kyosuke 5 年之前
父节点
当前提交
476c0e9f8a
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/element/linearElementEditor.ts

+ 1 - 3
src/element/linearElementEditor.ts

@@ -174,9 +174,7 @@ export class LinearElementEditor {
           ],
         });
       }
-      if (appState.editingLinearElement.lastUncommittedPoint !== null) {
-        history.resumeRecording();
-      }
+      history.resumeRecording();
       setState({
         editingLinearElement: {
           ...appState.editingLinearElement,