Skip creating new buffer if current buffer is empty
This prevents buffer-local commands getting lost that were set before startify was run. E.g. :Git which is set by fugitive.
This commit is contained in:
parent
5a1d811d5f
commit
6f621bd99a
2 changed files with 4 additions and 2 deletions
|
@ -61,7 +61,9 @@ function! startify#insane_in_the_membrane() abort
|
|||
endfor
|
||||
endif
|
||||
|
||||
noautocmd enew
|
||||
if line2byte('$') != -1
|
||||
noautocmd enew
|
||||
endif
|
||||
|
||||
silent! setlocal
|
||||
\ bufhidden=wipe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue