Branch: refs/heads/document-messages Author: Nick Treleaven nick.treleaven@btinternet.com Committer: Nick Treleaven nick.treleaven@btinternet.com Date: Fri, 06 Jul 2012 12:17:54 Commit: 5af4dab5f06316395d1507455284d7f8c588f9e2 https://github.com/geany/geany/commit/5af4dab5f06316395d1507455284d7f8c588f9...
Log Message: ----------- Fix showing project name in sidebar documents
This was broken if the base path ended with a directory separator.
Modified Paths: -------------- src/sidebar.c
Modified: src/sidebar.c 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -368,8 +368,9 @@ static gchar *get_doc_folder(const gchar *path) { gsize len = strlen(project_base_path);
+ /* remove trailing separator so we can match base path exactly */ if (project_base_path[len-1] == G_DIR_SEPARATOR) - project_base_path[len-1] = '\0'; + project_base_path[--len] = '\0';
/* check whether the dir name matches or uses the project base path */ if (utils_filename_has_prefix(tmp_dirname, project_base_path))
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).