<p>Alright, here's yet another fix of the colorization problem. I reverted the partial colorization patch completely and perform (full) recolorization when the typename list changes. I decided to detect the change of the typename list based on the string hash value - I believe it's sufficient and saves some memory per tab. The performance seems to be OK too (only when changing name of some type things get slower but there's no performance problem for normal code editing).</p>

<p><a href="https://github.com/elextr" class="user-mention">@elextr</a> Could you test please?<br>
<a href="https://github.com/b4n" class="user-mention">@b4n</a> Does it look OK to you?</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/1039'>https://github.com/geany/geany/pull/1039</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Revert "Colourise only the visible area when highlighting typenames"</li>
  <li>Don't accumulate multiple colourises</li>
  <li>Perform typename re-colourisation only when typename list changes</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1039/files#diff-0">src/document.c</a>
    (22)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1039/files#diff-1">src/documentprivate.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1039/files#diff-2">src/editor.c</a>
    (26)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/1039.patch'>https://github.com/geany/geany/pull/1039.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/1039.diff'>https://github.com/geany/geany/pull/1039.diff</a></li>
</ul>

<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 or <a href="https://github.com/geany/geany/pull/1039">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_FoXcDpw4NDZKBcat8XOkRxQM5dks5qC4tKgaJpZM4IhvOb.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/1039"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>