Skip to content

Commit 5819ecc

Browse files
committed
Fixes microsoft#18296: Cannot read property 'positionLineNumber' of undefined
1 parent 4eef9fa commit 5819ecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/editor/common/controller/cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export class Cursor extends EventEmitter {
425425
}
426426

427427
private _interpretCommandResult(cursorState: Selection[]): boolean {
428-
if (!cursorState) {
428+
if (!cursorState || cursorState.length === 0) {
429429
return false;
430430
}
431431

0 commit comments

Comments
 (0)