Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"csearch -n" output is 0-based, not 1-based #25

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 1 comment
Closed

"csearch -n" output is 0-based, not 1-based #25

GoogleCodeExporter opened this issue Mar 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Maybe this works as designed, but it caught me off guard. The line numbers 
reported by "csearch -n" seem to start at 0 instead of 1. This is at odds with 
e.g. grep, to which csearch compares itself in its help output. This makes it 
somewhat awkward to use "csearch -n" in emacs (and presumably other editors) 
since it numbers its lines starting at 1.

Original issue reported on code.google.com by austin.bingham on 11 Oct 2012 at 10:41

@GoogleCodeExporter
Copy link
Author

This was fixed in 
http://code.google.com/p/codesearch/source/detail?r=409f3e2a1a0d84a7c692aa7530d3
17f931c496e7 , but no new binary release has been produced.  Building your own 
from source will fix this issue, and provide a few other fixes that have been 
commited since January.

If you have Go installed, try running:
go get code.google.com/p/codesearch/cmd/{cindex,csearch}

Original comment by dgryski on 11 Oct 2012 at 1:04

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant