[geany/geany] af7718: Merge pull request #3193 from techee/short_name

Enrico Tröger git-noreply at geany.org
Sun May 22 14:34:30 UTC 2022


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   GitHub <noreply at github.com>
Date:        Sun, 22 May 2022 14:34:30 UTC
Commit:      af771840404a42187fc0b597447d7b2cf46c3342
             https://github.com/geany/geany/commit/af771840404a42187fc0b597447d7b2cf46c3342

Log Message:
-----------
Merge pull request #3193 from techee/short_name

Use G_DIR_SEPARATOR instead of / when getting short name


Modified Paths:
--------------
    src/tagmanager/tm_source_file.c

Modified: src/tagmanager/tm_source_file.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -595,7 +595,7 @@ static gboolean tm_source_file_init(TMSourceFile *source_file, const char *file_
 			return FALSE;
 		}
 		source_file->file_name = tm_get_real_path(file_name);
-		source_file->short_name = strrchr(source_file->file_name, '/');
+		source_file->short_name = strrchr(source_file->file_name, G_DIR_SEPARATOR);
 		if (source_file->short_name)
 			++ source_file->short_name;
 		else



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list