[geany/geany-plugins] b7970e: scope - check if T/B/S file exists (gdb 7.6+ always emits "fullname")
Dimitar Zhekov
git-noreply at xxxxx
Mon Feb 17 17:36:34 UTC 2014
Branch: refs/heads/master
Author: Dimitar Zhekov <dimitar.zhekov at gmail.com>
Committer: Dimitar Zhekov <dimitar.zhekov at gmail.com>
Date: Mon, 17 Feb 2014 17:36:34 UTC
Commit: b7970ec4653f57bcf782b3d4259d7129a06e2541
https://github.com/geany/geany-plugins/commit/b7970ec4653f57bcf782b3d4259d7129a06e2541
Log Message:
-----------
scope - check if T/B/S file exists (gdb 7.6+ always emits "fullname")
Modified Paths:
--------------
scope/src/utils.c
Modified: scope/src/utils.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -260,7 +260,8 @@ void utils_seek(const char *file, gint line, gboolean focus, SeekerType seeker)
if (seeker == SK_EXEC_MARK)
sci_set_marker_at_line(sci, line - 1, MARKER_EXECUTE);
}
- else if ((doc = document_open_file(file, FALSE, NULL, NULL)) != NULL)
+ else if (g_file_test(file, G_FILE_TEST_EXISTS) &&
+ (doc = document_open_file(file, FALSE, NULL, NULL)) != NULL)
{
sci = doc->editor->sci;
if (seeker == SK_EXECUTE || seeker == SK_EXEC_MARK)
--------------
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