Browse Source

Nvim: make :Startify work from terminal buffer

Fixes #327
Marco Hinz 7 năm trước cách đây
mục cha
commit
0b300f411f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      autoload/startify.vim

+ 2 - 1
autoload/startify.vim

@@ -44,7 +44,8 @@ endfunction
 " Function: #insane_in_the_membrane {{{1
 function! startify#insane_in_the_membrane() abort
   " Handle vim -y, vim -M.
-  if &insertmode || (!&modifiable && &filetype != 'startify')
+  if &insertmode
+        \ || (!&modifiable && &buftype != 'terminal' && &filetype != 'startify')
     return
   endif