<p><b>@ntrel</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2346#discussion_r333117217">src/notebook.c</a>:</p>
<pre style='color:#555'>> +    if (cur_doc == NULL)
+               cur_doc = document_get_current();
+       if (!cur_doc->real_path)
+               return;
+
+       gchar *dir = g_dirname(cur_doc->real_path);
+
+       for (gint i = 0; i < gtk_notebook_get_n_pages(GTK_NOTEBOOK(main_widgets.notebook)); i++)
+       {
+               GeanyDocument *doc = document_get_from_page(i);
+
+               if (!doc->real_path)
+                       continue;
+               if (other_folders && g_str_has_prefix(doc->real_path, dir))
+                       continue;
+               if (!other_folders && !g_str_has_prefix(doc->real_path, dir))
</pre>
<p>There has to be at least one file with that full directory because there wouldn't be a notebook tab otherwise.</p>

<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/pull/2346?email_source=notifications&email_token=AAIOWJ42S2I2BG2TPTT65WTQNYCMJA5CNFSM4I6TQ5Q2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHNLVOQ#discussion_r333117217">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ35634EGDBPYHAPYGDQNYCMJANCNFSM4I6TQ5QQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4ZK3OVMZWX75J5H5TQNYCMJA5CNFSM4I6TQ5Q2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHNLVOQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2346?email_source=notifications\u0026email_token=AAIOWJ42S2I2BG2TPTT65WTQNYCMJA5CNFSM4I6TQ5Q2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHNLVOQ#discussion_r333117217",
"url": "https://github.com/geany/geany/pull/2346?email_source=notifications\u0026email_token=AAIOWJ42S2I2BG2TPTT65WTQNYCMJA5CNFSM4I6TQ5Q2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHNLVOQ#discussion_r333117217",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>