Skip to content

Commit 93a571a

Browse files
authored
Remove editor model existence check
1 parent 35eb869 commit 93a571a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,8 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
284284
}
285285
}));
286286
this._disposableStore.add(dom.addDisposableListener(child, 'mouseout', () => {
287-
if (this._editor.hasModel()) {
288-
this._hoverOnLine = -1;
289-
this._hoverOnColumn = -1;
290-
}
287+
this._hoverOnLine = -1;
288+
this._hoverOnColumn = -1;
291289
}));
292290

293291
return child;

0 commit comments

Comments
 (0)