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:
parent
ae7f34ccf3
commit
08fed3134c
@ -213,9 +213,13 @@ endfunction
|
|||||||
function SVNgrepModified(regexp, ...)
|
function SVNgrepModified(regexp, ...)
|
||||||
"------------------------------------
|
"------------------------------------
|
||||||
execute 'let files = SVNgetModifiedFiles(' . join(a:000, ',') . ')'
|
execute 'let files = SVNgetModifiedFiles(' . join(a:000, ',') . ')'
|
||||||
|
if empty(files)
|
||||||
|
echo 'no files changed'
|
||||||
|
else
|
||||||
let command = 'vimgrep /'.a:regexp.'/g ' . join(files, ' ')
|
let command = 'vimgrep /'.a:regexp.'/g ' . join(files, ' ')
|
||||||
echo command
|
echo command
|
||||||
execute command
|
execute command
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"---------------------
|
"---------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user