Junegunn Choi 11 лет назад
Родитель
Сommit
5679540a2a
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      plug.vim

+ 1 - 5
plug.vim

@@ -793,11 +793,7 @@ function! s:diff()
     cd -
     cd -
   endfor
   endfor
 
 
-  if cnt == 0
-    call setline(1, 'No update.')
-  else
-    call setline(1, 'Updated changes:')
-  endif
+  call setline(1, cnt == 0 ? 'No update.' : 'Updated changes:')
   normal! gg
   normal! gg
 endfunction
 endfunction