<p>This fixes following the current document path.<br>
As mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="317635630" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany-plugins/issues/737" data-hovercard-type="issue" data-hovercard-url="/geany/geany-plugins/issues/737/hovercard" href="https://github.com/geany/geany-plugins/issues/737">#737</a> this was broken on Windows but actually it was broken on non-Windows as well if the start directory (Geany's default open directory or the project base directory) has no common parts with the current document's file path.</p>
<p>For Windows, there was an additional hack necessary: ignoring the drive letter completely in all checks.<br>
This made it working for the moment but obviously breaks a lot of the plugin's functionality if files on another drive than the current are handled.<br>
This should be fixed properly but since the fact that I don't use the plugin and my available time is limited, I won't do myself.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/796'>https://github.com/geany/geany-plugins/pull/796</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>TreeBrowser: Fix wording</li>
  <li>TreeBrowser: Fix memory leaks</li>
  <li>TreeBrowser: Always search the whole path when trying to find current file in tree</li>
  <li>TreeBrowser: Unify plugin signal connect methods</li>
  <li>TreeBrowser: Strip drive letter on Windows</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/796/files#diff-0">treebrowser/src/treebrowser.c</a>
    (98)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/796.patch'>https://github.com/geany/geany-plugins/pull/796.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/796.diff'>https://github.com/geany/geany-plugins/pull/796.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/796">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ2Jj_yfq5l7DSQB-7OcQxPiuEL3Oks5u1A0YgaJpZM4Y9gO6">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ9liSjrgEXmuPbyse4cOq0mQtkOpks5u1A0YgaJpZM4Y9gO6.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-plugins","title":"geany/geany-plugins","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-plugins"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Issue737 treebrowser follow doc fix (#796)"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany-plugins/pull/796"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/796",
"url": "https://github.com/geany/geany-plugins/pull/796",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Issue737 treebrowser follow doc fix (#796)",
"sections": [
{
"text": "",
"activityTitle": "**Enrico Tröger**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@eht16",
"facts": [

]
},
{
"title": "Commit Summary",
"facts": [
{
"name": "5f39c55",
"value": "TreeBrowser: Fix wording"
},
{
"name": "426c0cc",
"value": "TreeBrowser: Fix memory leaks"
},
{
"name": "f63e689",
"value": "TreeBrowser: Always search the whole path when trying to find current file in tree"
},
{
"name": "863d545",
"value": "TreeBrowser: Unify plugin signal connect methods"
},
{
"name": "428b6d5",
"value": "TreeBrowser: Strip drive letter on Windows"
}
]
},
{
"title": "File Changes",
"facts": [
{
"name": "Modified",
"value": "[treebrowser/src/treebrowser.c](https://github.com/geany/geany-plugins/pull/796/files#diff-0) (98 changes)"
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany-plugins\",\n\"issueId\": 796,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"geany/geany-plugins\",\n\"pullRequestId\": 796\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany-plugins/pull/796"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany-plugins/pull/796.patch"
}
],
"@type": "OpenUri",
"name": "View patch"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany-plugins/pull/796.diff"
}
],
"@type": "OpenUri",
"name": "View diff"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 418775994\n}"
}
],
"themeColor": "26292E"
}
]</script>