<p></p>
<p dir="auto">When "load files from the last session" is enabled, regardless of whether a project is loaded, the previously active document is reactivated when Geany is closed and restarted with a document at the command line or from a file manager.  The expected behavior is to activate the newly opened document for editing.</p>
<p dir="auto">This occurs with the default config and no plugins loaded.  Does not occur in an old build from 2021-12-30.  Does occur in builds dated after 2022-05-01.  I did not build Geany between those dates, so don't know when the new behavior was introduced.  I do not see it in the manual, nor do I see any option to revert to the old behavior.</p>
<p dir="auto">To reproduce:</p>
<ol dir="auto">
<li>Open Geany.</li>
<li>Open a several of documents.</li>
<li>Close Geany.</li>
<li>Open Geany with a file from a file manager or command line.</li>
<li>Geany will open and activate the last active document.  Expected behavior is to activate the newly opened document for editing.</li>
</ol>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/3210">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3ESBBGDHL7YF552DDVLRSFLANCNFSM5WYB2IHA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ3DLNDXF2PNUTU3TY3VLRSFLA5CNFSM5WYB2IHKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4SSEQQDA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/issues/3210</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/3210",
"url": "https://github.com/geany/geany/issues/3210",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>