<p>Looking at your screenshot it looks like you have Ubuntu's overlay scrollbars.  It's very possible they overflow a few pixels on the editing are hiding the bottom of the line.</p>

<p>I indeed cannot reproduce this on my system, where when I manage to put the bottom line the closest to the bottom of the editing area, I get this:<br>
<a href="https://cloud.githubusercontent.com/assets/793526/16616890/8ac2e8b4-4380-11e6-9721-cd400250ead4.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/793526/16616890/8ac2e8b4-4380-11e6-9721-cd400250ead4.png" alt="bottom-line-squiggle" style="max-width:100%;"></a><br>
As you can see, the squiggle underline doesn't oveflow the line boundaries, so is completely visible here.  I wonder: does it overflow on your system, or is about 1 px of the whole line missing?</p>

<p>Also, one reason I find the red squiggle hard to see on your capture isn't that one pixel of it is missing but that it has a color too similar to what I believe is the bottom scrollbar.  It's kind of unfortunate to have such non-background colors around an area containing unknown content.  Sure, Scintilla could have a padding, but that would waste screen estate for nothing.<br>
A workaround could be changing the color of that underline (not currently configurable unfortunately) or of that scrollbar.</p>

<p>However, we could indeed set <a href="http://www.scintilla.org/ScintillaDoc.html#SCI_SETYCARETPOLICY">the Y caret policy</a> with an offset so the last line is never on the bottom, something like <code>SCI_SETYCARETPOLICY(CARET_SLOP | CARET_STRICT | CARET_EVEN, 1)</code>.<br>
I guess that'd be reasonable, but may require a setting.  Also, note that if scrolling past the last line is disabled, this won't help with the very last line, as there are none to display below it.</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/1116#issuecomment-230763662">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ8wVyrfiy2b_5mNhz-tHK3fUoGkcks5qS6argaJpZM4JF8fD">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ91TVibpPviLpY5Z32TfxT8RLQrxks5qS6argaJpZM4JF8fD.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/1116#issuecomment-230763662"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>