D11940: Penalize matches in the shared project prefix path

Milian Wolff noreply at phabricator.kde.org
Fri Apr 6 10:46:32 UTC 2018


mwolff updated this revision to Diff 31469.
mwolff added a comment.


  fix a corner case where we miscalculated the inPrefixPath
  
  segmentMatchDistance was off-by-one since pathIndex is decremented
  after the last match. Account for that to ensure that a path that's
  directly in the project root is not considered in the prefix path.

REPOSITORY
  R32 KDevelop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D11940?vs=31345&id=31469

REVISION DETAIL
  https://phabricator.kde.org/D11940

AFFECTED FILES
  kdevplatform/language/interfaces/abbreviations.cpp
  kdevplatform/language/interfaces/abbreviations.h
  kdevplatform/language/interfaces/quickopenfilter.h
  plugins/quickopen/projectfilequickopen.h
  plugins/quickopen/tests/quickopentestbase.h
  plugins/quickopen/tests/test_quickopen.cpp

To: mwolff
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180406/7ec1db17/attachment.html>


More information about the KDevelop-devel mailing list