From 5679540a2a17cbdbc8b1e1b52a6ea8c4c6e5ffb1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 9 Apr 2014 01:03:43 +0900 Subject: [PATCH] Less LOC --- plug.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plug.vim b/plug.vim index 413b0a5..e5fc0e5 100644 --- a/plug.vim +++ b/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