<p>Let's consider the following example:</p>
<div class="highlight highlight-source-python"><pre><span class="pl-k">import</span> math
<span class="pl-k">class</span> <span class="pl-en">A</span>(<span class="pl-c1">object</span>):
    <span class="pl-k">def</span> <span class="pl-en">f</span>(<span class="pl-smi"><span class="pl-smi">self</span></span>):
        <span class="pl-k">pass</span>
    <span class="pl-k">def</span> <span class="pl-en">g</span>(<span class="pl-smi"><span class="pl-smi">self</span></span>):
        <span class="pl-k">pass</span></pre></div>
<p>From the symbols list, if I select the <code>f</code> method:</p>
<ol>
<li>its name is highlighted in the symbols list</li>
<li>its heading is highlighted in the editor</li>
<li>but the status bar says that I'm in <code>A</code>, while I would have expected <code>A.f</code></li>
</ol>
<p>While, if, from the symbols list, I select the <code>A</code> class:</p>
<ol>
<li>as above</li>
<li>as above</li>
<li>but the status bar says that I'm in <code>unknown</code>, while I would have expected <code>A</code></li>
</ol>
<p>Let's suppose now that the staus bar returns the right name of the current function.</p>
<p>From the editor, if I select the <code>g</code> method (could be its heading or its body):</p>
<ol>
<li>its name is not highlighted in the symbols list (it's still <code>f</code>), while I would have expected it to be</li>
<li>the current line is highlighted in the editor</li>
<li>the status bar says that I'm in <code>A.g</code></li>
</ol>
<p>At this point, I think that it would be relatively easy to:</p>
<ol>
<li>take the value returned from the status bar (<code>A.g</code>)</li>
<li>take the value of the current symbol highlighted in the symbols list (<code>A.f</code>)</li>
<li>if they are different [*] then highlight the symbol with value equal to one returned from the status bar (<code>A.g</code>)</li>
</ol>
<p>[*] In certain cases the staus bar returns the value <code>unknown</code>, for instance if I select, from the editor, the import statement <code>import math</code>. So it would be better to rephrase the last point in:</p>
<ol start="3">
<li>if (they are different <strong>and</strong> the value of the staus bar is not unknown) then  highlight the symbol with value equal to one returned from the status bar (<code>A.g</code>)</li>
</ol>
<p>I would really supply a pull request, but unfortunately I don't know C.</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/issues/1685">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ4DRezlWVwrCG0xR53uV8fT7yyebks5s1e8sgaJpZM4QamO4">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ4tBgGpv4X_U-4c0w8mRiwZZHnCyks5s1e8sgaJpZM4QamO4.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/1685"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Relation between current function in symbols list and in status bar (#1685)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1685"}}}</script>