Skip to content

Commit

Permalink
fix: resize window when explorer is last window
Browse files Browse the repository at this point in the history
  • Loading branch information
weirongxu committed May 12, 2022
1 parent a4846f2 commit 7d70b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/openAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ class OpenActionContext {
const notifiers: Notifier.Cell[] = [];
if (earlyQuit) await this.explorer.tryQuitOnOpen();
else notifiers.push(await this.quitOnOpenNotifier());
const wins = await this.nvim.windows;
const resizeIt = wins.length === 1;
const lastWinnr = await this.nvim.call('winnr', ['$']);
const resizeIt = lastWinnr === 1;
this.nvim.pauseNotification();
callback();
Notifier.notifyAll(notifiers);
Expand Down

0 comments on commit 7d70b1d

Please sign in to comment.