소스 검색

Avoid Press-ENTER prompt on system()

Fixes https://github.com/mhinz/vim-startify/issues/460
Marco Hinz 4 년 전
부모
커밋
d663f4db7a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -1054,7 +1054,7 @@ function! s:create_last_session_link(session_path)
     let cmd = printf('ln -sf %s %s',
     let cmd = printf('ln -sf %s %s',
           \ shellescape(fnamemodify(a:session_path, ':t')),
           \ shellescape(fnamemodify(a:session_path, ':t')),
           \ shellescape(s:session_dir .'/__LAST__'))
           \ shellescape(s:session_dir .'/__LAST__'))
-    call system(cmd)
+    silent call system(cmd)
     if v:shell_error
     if v:shell_error
       call s:warn("Can't create 'last used session' symlink.")
       call s:warn("Can't create 'last used session' symlink.")
     endif
     endif