Junegunn Choi 11 年之前
父節點
當前提交
5679540a2a
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      plug.vim

+ 1 - 5
plug.vim

@@ -793,11 +793,7 @@ function! s:diff()
     cd -
   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
 endfunction