Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 16 Jan 2016 21:46:54 UTC Commit: 803fc391653126e37076d42fdfcffd8e4af01afc https://github.com/geany/geany-plugins/commit/803fc391653126e37076d42fdfcffd...
Log Message: ----------- geniuspaste: Simplify getting the paste title
Modified Paths: -------------- geniuspaste/src/geniuspaste.c
Modified: geniuspaste/src/geniuspaste.c 7 lines changed, 1 insertions(+), 6 deletions(-) =================================================================== @@ -371,12 +371,7 @@ static gboolean append_placeholder(GString *str, } else if (strcmp("title", placeholder) == 0) { - gchar *title; - - if (doc->file_name) - title = g_path_get_basename(doc->file_name); - else - title = document_get_basename_for_display(doc, -1); + gchar *title = g_path_get_basename(DOC_FILENAME(doc));
g_string_append(str, title); g_free(title);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org