Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix : Error occurs when dismissing QuickOpen dialog when no document is open #14698

Merged
merged 1 commit into from
Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/search/QuickOpen.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ define(function (require, exports, module) {
// completes) since ModalBar has already resized the editor and done its own scroll adjustment before
// this event fired - so anything we set here will override the pos that was (re)set by ModalBar.
var editor = EditorManager.getCurrentFullEditor();
if (this._origSelections) {
if (editor && this._origSelections) {
editor.setSelections(this._origSelections);
}
if (this._origScrollPos) {
if (editor && this._origScrollPos) {
editor.setScrollPos(this._origScrollPos.x, this._origScrollPos.y);
}
}
Expand Down