소스 검색

Nvim: make :Startify work from terminal buffer

Fixes #327
Marco Hinz 7 년 전
부모
커밋
0b300f411f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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