When another doucument is selected in editor.switchfile, display change immediately.