[Geany-devel] [PATCH] Doclist dirnames collapsing

Eugene Arshinov earshinov at xxxxx
Sun Jun 6 06:28:03 UTC 2010


On Fri, 4 Jun 2010 10:43:02 +0400%
Eugene Arshinov <earshinov at gmail.com> wrote:

> Hi.
> 
> This patch seems to fix collapsing dirnames in doclist to current
> project's base path if the latter contains trailing directory
> separator.
> 
> Best regards,
> Eugene. 

To clarify why this patch is needed: current implementation behaves
incorrectly if project path contains trailing directory separator and
the path, with which project path is matched, is equal to project
path, but does not contain trailing separator.  Illustration:

Project: home
Project path: /home/eugene/
Path in doclist: /home/eugene
Result with current implementation: /home/eugene
Should be: home

Best regards,
Eugene.



More information about the Devel mailing list