<blockquote>
<p>So it tracks the longest line that it has displayed and sets the scroll bar for that, but it starts with an initial guesstimate of 2000 pixels, which might be about 300 chars depending on your font size.</p>
</blockquote>

<p>Doesnt that mean we can simply reduce the initial estimate and then it'll be better fit, and it will work for cases where the estimate is wrong?</p>

<p>Why not just set the estimate to, like, 120 chars then?</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/issues/886#issuecomment-192866581">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ6dWS-VrE4ZlJrPBcMxSLiuSPn_-ks5pqqmzgaJpZM4HMZIc.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/886#issuecomment-192866581"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>