提交 57c405c2 编写于 作者: S shskwmt

Change reason for moveWordCommand to CursorChangeReason.Explicit

上级 3ceb3a10
......@@ -850,7 +850,6 @@ export class SelectionHighlighter extends Disposable implements IEditorContribut
this.updateSoon.schedule();
} else {
this._setState(null);
}
} else {
this._update();
......
......@@ -55,7 +55,7 @@ export abstract class MoveWordCommand extends EditorCommand {
});
model.pushStackElement();
editor._getViewModel().setCursorStates('moveWordCommand', CursorChangeReason.NotSet, result.map(r => CursorState.fromModelSelection(r)));
editor._getViewModel().setCursorStates('moveWordCommand', CursorChangeReason.Explicit, result.map(r => CursorState.fromModelSelection(r)));
if (result.length === 1) {
const pos = new Position(result[0].positionLineNumber, result[0].positionColumn);
editor.revealPosition(pos, ScrollType.Smooth);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册