<p>The code deciding whether to popup a normal completion or scope completion could be improved as <a href="https://github.com/b4n" class="user-mention">@b4n</a> described:</p>

<p>Just a thought (I don't think it has anything to do directly with the changes here, but it's related to scope completion): it'd be nice to trigger scope completion back when continuing on typing on a word after a scope element, instead of only when actually typing the scope separator. E.g the user could cancel the autoc some way, and get back to it without re-typing the separator.</p>

<pre><code>static struct {
    int first, second;
} foo;

int main(void) {
    return foo.f/*cursor*/;  // <- here, typing "o" would show "first"
}
</code></pre>

<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/issues/861">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ95InRy1fCjOOWjee5n8mY-IodVPks5pYYL7gaJpZM4HBxmS.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/861"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>