Przeglądaj źródła

Close Startify buffer on WinLeave

Before this change the Startify buffer didn't close if only split
actions ('s' and 'v') were used to open files.
Marco Hinz 12 lat temu
rodzic
commit
544690b6c0
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      autoload/startify.vim

+ 1 - 0
autoload/startify.vim

@@ -110,6 +110,7 @@ function! startify#insane_in_the_membrane() abort
   autocmd! startify *
   autocmd! startify *
   autocmd  startify CursorMoved <buffer> call s:set_cursor()
   autocmd  startify CursorMoved <buffer> call s:set_cursor()
   autocmd  startify BufLeave    <buffer> autocmd! startify *
   autocmd  startify BufLeave    <buffer> autocmd! startify *
+  autocmd  startify WinLeave    <buffer> bd
 
 
   call cursor(special ? 4 : 2, 5)
   call cursor(special ? 4 : 2, 5)
 endfunction
 endfunction