SVNgrepModified: Meldung, wenn Liste leer ist

git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@191 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
alterdepp 2010-07-15 08:03:31 +00:00
parent ae7f34ccf3
commit 08fed3134c

View File

@ -213,9 +213,13 @@ endfunction
function SVNgrepModified(regexp, ...)
"------------------------------------
execute 'let files = SVNgetModifiedFiles(' . join(a:000, ',') . ')'
if empty(files)
echo 'no files changed'
else
let command = 'vimgrep /'.a:regexp.'/g ' . join(files, ' ')
echo command
execute command
endif
endfunction
"---------------------