<p>This PR sends the cursor to the beginning or end of the document when "go to line" is out of bounds.  When this occurs, the line marker is not set.  Behavior of both the dialog and toolbar are affected.  Addresses <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="440883893" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/2146" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2146/hovercard" href="https://github.com/geany/geany/issues/2146">#2146</a>.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2973'>https://github.com/geany/geany/pull/2973</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/geany/geany/pull/2973/commits/9cd5a290093c76d57c77653a08340739b47d1ea5">When "go to line" is out of bounds, go to beginning or end of document</a></li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/geany/geany/pull/2973/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2973/files#diff-3fe5ce523684a7fca311fab0d09542552fbe3a28ddaa20ebc5a65c1904bc5e02">src/editor.c</a>
    (32)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2973.patch'>https://github.com/geany/geany/pull/2973.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2973.diff'>https://github.com/geany/geany/pull/2973.diff</a></li>
</ul>

<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/pull/2973">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ67Q4MHOWVQXB4VYNTUJNTFVANCNFSM5HAS4DXQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ34J54ULUAV5OH5EVLUJNTFVA5CNFSM5HAS4DX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PP5YALA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2973",
"url": "https://github.com/geany/geany/pull/2973",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>