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

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2667#discussion_r527912787">src/keyfile.c</a>:</p>
<pre style='color:#555'>>  
        if (ft == NULL) /* can happen when saving a new file when quitting */
                ft = filetypes[GEANY_FILETYPES_NONE];
 
-       locale_filename = utils_get_locale_from_utf8(doc->file_name);
+       /* project_root_folder contain a path only if the project use relative path */
+       if(project_root_folder){
+               file_root_folder = g_file_new_for_path(project_root_folder);
+               file_doc = g_file_new_for_path(doc->file_name);
+               relative_filename = g_file_get_relative_path(file_root_folder, file_doc);
+               if(relative_filename){
+                       /* Append './' so we know it is a relative filename */
+                       doc_filename = g_strconcat("./",relative_filename, NULL);
</pre>
<p>Make sense, I will change the behavior, I don't need to store "./" at the  beginning of the path.</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/2667#discussion_r527912787">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZ4GWOAMKCLH3FSWO3SQ24Q3ANCNFSM4T3NLZQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZTKDJX6ZZXD7IBYKLSQ24Q3A5CNFSM4T3NLZQ2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOD7XCWUA.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/2667#discussion_r527912787",
"url": "https://github.com/geany/geany/pull/2667#discussion_r527912787",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>