<p>This should be a fair bit faster as the word is only even fetched only if its length would match the clickpos one's, in case the <code>strcmp()</code> would have failed anyway.  And as we know the length, we can use <code>strncmp()</code> and then any pointer (without necessarily a trailing <code>\0</code>).</p>

<p>Also, the gap is not very likely to be in the middle of a word, so unlikely to have to move.  And anyway, would move at worse once.</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-plugins/commit/2c481661d22cb16fc1b6c62e4331d410c9d77eac#commitcomment-16223678">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJxHEVb9PBkKLXzC1AZG1clhdviFmks5pmN1cgaJpZM4Hewe-.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-plugins/commit/2c481661d22cb16fc1b6c62e4331d410c9d77eac#commitcomment-16223678"></link>
  <meta itemprop="name" content="View Commit"></meta>
</div>
<meta itemprop="description" content="View this Commit on GitHub"></meta>
</div>