<p>I've committed <a href="https://github.com/geany/geany/pull/1022" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/1022" data-id="152978879" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#1022</a> which should hopefully fix this issue. <a href="https://github.com/elextr" class="user-mention">@elextr</a> would you give it a try? I can't completely reproduce it here.</p>

<blockquote>
<p><a href="https://github.com/techee" class="user-mention">@techee</a> can you look at how to fix, as I said on <a href="https://github.com/geany/geany/pull/575" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/575" data-id="94939159" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#575</a> we NEED the whole document re-highlighted if the wordlists change, otherwise Geany operations that use highlighting to guide them will fail.</p>
</blockquote>

<p>As far as I can tell, there's nothing in Geany relying on the highlighting information - I believe it's sufficient to let Scintilla highlight the invisible parts of the document lazily as it gets scrolled.</p>

<p>What is needed is to get the whole document lexed at the beginning to get the fold points right. However, subsequent edits should update fold information in scintilla so full relexing shouldn't be needed after every keystroke.</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 or <a href="https://github.com/geany/geany/issues/1020#issuecomment-216824260">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0JObJTDy-D0m_kJXez4xDNvH5h8ks5p-HY3gaJpZM4IWLIu.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/issues/1020#issuecomment-216824260"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>