Skip to content
Discussion options

You must be logged in to vote

This one is Vim, not cscope. Vim keeps each cscope match as tag<Tab>file<Tab>line;"<Tab>text, and when it prints the :cs find list it reads the text with strtok(NULL, "\t") (cs_print_tags_priv() in src/if_cscope.c), which stops at the next tab. Line 2922 of tcp_ipv4.c is timer_expires<Tab>= icsk_timeout(icsk);, so only timer_expires is shown. Selecting the entry still jumps to the right line, since that uses the line number. The code is the same in current Vim, so upgrading from 8.2 won't change it.

The quickfix list keeps the whole line, so you can send t queries there instead:

set cscopequickfix=t-
cs find t icsk_timeout
copen

I checked this on Vim 9.1: the :cs find list showed timer_ex…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mzhan017
Comment options

@usmanmateen
Comment options

Answer selected by mzhan017
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants