fix cscope test failure

This commit is contained in:
rover
2017-01-07 22:10:06 +08:00
committed by James McCoy
parent 971d0590be
commit 0b81addd0a
3 changed files with 147 additions and 3 deletions

View File

@@ -1294,9 +1294,10 @@ static int cs_kill(exarg_T *eap)
}
}
if (i >= csinfo_size || csinfo[i].fname == NULL) {
if (p_csverbose)
if (!killall && (i >= csinfo_size || csinfo[i].fname == NULL)) {
if (p_csverbose) {
(void)EMSG2(_("E261: cscope connection %s not found"), stok);
}
return CSCOPE_FAILURE;
} else {
if (killall) {