diff options
author | rover <pathfinder2013@126.com> | 2017-01-07 22:10:06 +0800 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-02-10 00:35:34 -0500 |
commit | 0b81addd0a7210485ef37a49355effc45b47954e (patch) | |
tree | 5e9c95b603ad62946380e601412a6c9a461c1f55 /src/nvim/if_cscope.c | |
parent | 971d0590be0e2981c9ce2fbdc2bb43150ad19869 (diff) | |
download | rneovim-0b81addd0a7210485ef37a49355effc45b47954e.tar.gz rneovim-0b81addd0a7210485ef37a49355effc45b47954e.tar.bz2 rneovim-0b81addd0a7210485ef37a49355effc45b47954e.zip |
fix cscope test failure
Diffstat (limited to 'src/nvim/if_cscope.c')
-rw-r--r-- | src/nvim/if_cscope.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 0b20647771..9d50058257 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -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) { |