mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-11 12:25:59 +03:00
Fix deref of undefined race on startup.
This can happen if you interact with the editor while vim mode is still loading.
This commit is contained in:
parent
b6d72d95fa
commit
6ef147db41
@ -685,7 +685,10 @@ export class ModeHandler implements vscode.Disposable {
|
||||
}
|
||||
|
||||
// See comment about whatILastSetTheSelectionTo.
|
||||
if (this._vimState.whatILastSetTheSelectionTo.isEqual(selection)) {
|
||||
if (
|
||||
this._vimState.whatILastSetTheSelectionTo &&
|
||||
this._vimState.whatILastSetTheSelectionTo.isEqual(selection)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user