Skip to content

Commit 896c9c0

Browse files
authored
1 parent 1e3d0b5 commit 896c9c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vs/editor/contrib/suggest/browser/suggestWidget.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,7 @@ export class SuggestWidget implements IDisposable {
573573

574574
focusSelected(): void {
575575
const selection = this._list.getSelection();
576-
if (selection.length !== 1) {
577-
this._list.setFocus([0]);
578-
} else {
576+
if (selection.length === 1) {
579577
this._list.setFocus([selection[0]]);
580578
}
581579
}

0 commit comments

Comments
 (0)