-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't include extension when measuring cur_file_prefix_len
Stripping the extension allows e.g. "a/foo.c" and "a/foo.h" to rank equally for a current file of "foo.c" (or, more importantly, "a/foo.h" to rank above "a/b/foo.c"). Retaining the "." ensures that "foo.cc" will still rank above e.g. "foox.h".
- Loading branch information
Showing
3 changed files
with
25 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters