[geany/geany-plugins] 303b48: Merge pull request #722 from LarsGit223/fix-live-update
Frank Lanitz
git-noreply at xxxxx
Sun Mar 11 12:47:22 UTC 2018
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: GitHub <noreply at github.com>
Date: Sun, 11 Mar 2018 12:47:22 UTC
Commit: 303b48a1c1c93e823a763d2207f2b422f3668fa2
https://github.com/geany/geany-plugins/commit/303b48a1c1c93e823a763d2207f2b422f3668fa2
Log Message:
-----------
Merge pull request #722 from LarsGit223/fix-live-update
workbench: fix broken live-update
Modified Paths:
--------------
workbench/src/wb_project.c
Modified: workbench/src/wb_project.c
8 lines changed, 6 insertions(+), 2 deletions(-)
===================================================================
@@ -824,19 +824,23 @@ static void wb_project_dir_regenerate_tags(WB_PROJECT_DIR *root, G_GNUC_UNUSED g
g_hash_table_iter_init(&iter, root->file_table);
while (g_hash_table_iter_next(&iter, &key, &value))
{
+ TMSourceFile *sf;
+
+ sf = NULL;
if (g_file_test(key, G_FILE_TEST_IS_REGULAR))
{
- TMSourceFile *sf;
gchar *utf8_path = key;
gchar *locale_path = utils_get_locale_from_utf8(utf8_path);
sf = tm_source_file_new(locale_path, filetypes_detect(utf8_path)->name);
if (sf && !document_find_by_filename(utf8_path))
g_ptr_array_add(source_files, sf);
- g_hash_table_insert(file_table, g_strdup(utf8_path), sf);
g_free(locale_path);
}
+
+ /* Add all files to the file-table (files and dirs)! */
+ g_hash_table_insert(file_table, g_strdup(key), sf);
}
g_hash_table_destroy(root->file_table);
root->file_table = file_table;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list