<div class="highlight highlight-console"><pre>$ <span class="pl-s1">geany /tmp/nonexistant <span class="pl-k">&</span></span>
$ <span class="pl-s1">geany /tmp/nonexistant <span class="pl-k">&</span></span></pre></div>

<p>results in 2 documents opened, both with <code>doc->file_name</code> set to <em>/tmp/nonexistant</em>.  So when you save 'em, you save the same file, yet you have 2 separate documents.</p>

<p>Basically this change gives the same behavior as if you saved the file before trying to open it a second time.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/646#issuecomment-138587281">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ39-V9Xor7lU5-JRb7KYHARR81tnks5ovur1gaJpZM4F5jOL.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/646#issuecomment-138587281"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>