提交 474aab0a 编写于 作者: A Alex Dima

Always emit events when cursor state changes (even if the previous state is invalid)

上级 ce45e04b
......@@ -318,11 +318,12 @@ export class Cursor extends EventEmitter {
var handled = false;
try {
var oldSelections = this.cursors.getSelections();
var oldViewSelections = this.cursors.getViewSelections();
// ensure valid state on all cursors
this.cursors.ensureValidState();
var oldSelections = this.cursors.getSelections();
var oldViewSelections = this.cursors.getViewSelections();
var prevCursorsState = this.cursors.saveState();
var eventSource = source;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册