Explorar o código

Nvim: make :Startify work from terminal buffer

Fixes #327
Marco Hinz %!s(int64=7) %!d(string=hai) anos
pai
achega
0b300f411f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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