diff options
Diffstat (limited to 'src/nvim/fileio.c')
| -rw-r--r-- | src/nvim/fileio.c | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 16431d14c3..05a0a59874 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -6191,12 +6191,9 @@ aucmd_prepbuf (      }    } -  /* Allocate "aucmd_win" when needed.  If this fails (out of memory) fall -   * back to using the current window. */ +  /* Allocate "aucmd_win" when needed. */    if (win == NULL && aucmd_win == NULL) {      win_alloc_aucmd_win(); -    if (aucmd_win == NULL) -      win = curwin;    }    if (win == NULL && aucmd_win_used)      /* Strange recursive autocommand, fall back to using the current | 
