Explorar o código

Env: prevent 'press enter' prompt in small windows (only Vim)

Marco Hinz %!s(int64=10) %!d(string=hai) anos
pai
achega
23e043cc82
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      autoload/startify.vim

+ 4 - 1
autoload/startify.vim

@@ -799,7 +799,10 @@ function! s:init_env()
   let ignore = { 'PWD': 1, 'OLDPWD': 1 }
 
   function! s:get_env()
-    silent execute "normal! :return $\<c-a>')\<c-b>\<c-right>\<right>\<del>split('\<cr>"
+    redir => s
+      silent! execute "norm!:ec$\<c-a>'\<c-b>\<right>\<right>\<del>'\<cr>"
+    redir END
+    return split(s)
   endfunction
 
   function! s:compare_by_key_len(foo, bar)