<p>When <code>doc == doc_b</code>, <code>pos</code> should not increment since if the tab is moving from left to right (like when saving an untitled document to a new file), the target position should be <code>pos - 1</code>.</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/commit/b1528f01e240379c0f75ae0c2f50829b271c0f30#commitcomment-18461392">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ0Rq8ZMcx9xLCvKscAQ9WVMFomrIks5qa6J-gaJpZM4JY35g">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3k0QAxlxcFumNfBpJBsXRFZeJVfks5qa6J-gaJpZM4JY35g.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/commit/b1528f01e240379c0f75ae0c2f50829b271c0f30#commitcomment-18461392"></link>
  <meta itemprop="name" content="View Commit"></meta>
</div>
<meta itemprop="description" content="View this Commit on GitHub"></meta>
</div>