Selaa lähdekoodia

silent! redraw is simpler

Junegunn Choi 10 vuotta sitten
vanhempi
sitoutus
36e4364b81
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -764,7 +764,7 @@ function! s:update_impl(pull, force, args) abort
   call s:prepare()
   call append(0, ['', ''])
   normal! 2G
-  try | redraw | catch | endtry
+  silent! redraw
 
   let s:clone_opt = get(g:, 'plug_shallow', 1) ?
         \ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') : ''