@@ -250,7 +250,7 @@ export class AppState {
250250 }
251251
252252 getViewFromCache ( cache : FileState ) {
253- const winState = this . winStates [ 0 ] ;
253+ const winState = this . winStates [ 0 ] ;
254254 const viewId = cache . viewId ;
255255 return winState . getView ( viewId ) ;
256256 }
@@ -262,18 +262,18 @@ export class AppState {
262262 */
263263 getInactiveViewVisibleCache ( ) : FileState {
264264 const winState = this . winStates [ 0 ] ;
265- const view = winState . getActiveView ( false ) ;
265+ const view = winState . getInactiveView ( ) ;
266266 return view . caches . find ( cache => cache . isVisible === true ) ;
267267 }
268268
269269 getViewVisibleCache ( viewId : number ) : FileState {
270- const winState = this . winStates [ 0 ] ;
270+ const winState = this . winStates [ 0 ] ;
271271 const view = winState . getView ( viewId ) ;
272272 return view . caches . find ( cache => cache . isVisible === true ) ;
273273 }
274274
275275 getCachesForView ( viewId : number ) {
276- const winState = this . winStates [ 0 ] ;
276+ const winState = this . winStates [ 0 ] ;
277277 const view = winState . getView ( viewId ) ;
278278 return view . caches ;
279279 }
@@ -378,7 +378,7 @@ export class AppState {
378378
379379 getActiveCache ( ) : FileState {
380380 const winState = this . winStates [ 0 ] ;
381- const view = winState . getActiveView ( true ) ;
381+ const view = winState . getActiveView ( ) ;
382382 return this . isExplorer
383383 ? view . caches . find ( cache => cache . isVisible === true )
384384 : null ;
0 commit comments