提交 d6c8a5f5 编写于 作者: S shskwmt

Remove pushUndoStop() from restoreRelativeVerticalPositionOfCursor

上级 0c790389
......@@ -173,6 +173,5 @@ export class StableEditorScrollState {
const offset = editor.getTopForLineNumber(currentCursorPosition.lineNumber) - editor.getTopForLineNumber(this._cursorPosition.lineNumber);
editor.setScrollTop(editor.getScrollTop() + offset);
editor.pushUndoStop();
}
}
......@@ -294,6 +294,7 @@ export class SuggestController implements IEditorContribution {
});
scrollState.restoreRelativeVerticalPositionOfCursor(this.editor);
this.editor.pushUndoStop();
if (!(flags & InsertFlags.NoAfterUndoStop)) {
this.editor.pushUndoStop();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册