|
|
@@ -130,8 +130,6 @@ const removeRow = (editor: EditorView) => {
|
|
|
const bolPos = editor.state.doc.line(curLine).from;
|
|
|
const eolPos = editor.state.doc.line(curLine).to;
|
|
|
|
|
|
- const nextCurPos = editor.state.doc.lineAt(getCurPos(editor)).to + 1;
|
|
|
-
|
|
|
editor.dispatch({
|
|
|
changes: {
|
|
|
from: bolPos,
|
|
|
@@ -139,6 +137,8 @@ const removeRow = (editor: EditorView) => {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+ const nextCurPos = editor.state.doc.lineAt(getCurPos(editor)).to + 1;
|
|
|
+
|
|
|
editor.dispatch({
|
|
|
selection: { anchor: nextCurPos },
|
|
|
});
|