diff options
-rw-r--r-- | src/nvim/if_cscope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 5bd1fdfcfb..5c3dfb0caf 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -574,7 +574,7 @@ static int cs_cnt_matches(size_t idx) // Display/discard any output that doesn't match what we want. // Accept "\S*cscope: X lines", also matches "mlcscope". // Bail out for the "Unable to search" error. - if (strstr((const char *)stok, "Unable to search database") != NULL) { + if (strstr((const char *)buf, "Unable to search database") != NULL) { break; } if ((stok = strtok(buf, (const char *)" ")) == NULL) { |