<p></p>
<p>Tested ok, except if the user enters 0 gets the warning: "(geany:6625): Geany-CRITICAL **: 10:51:24.814: editor_goto_line: assertion 'line_no >= 0' failed"</p>
<p>Scintilla docs for <code>gotoline</code> say numbered from 0 and thats the only place I can find that explicitly specifies it.</p>
<p>But the margins are numbered from 1 and entering a number goes to the start of the line with that margin number.  Geany uses <code>getposfromline</code> and <code>gotopos</code> not <code>gotoline</code> so maybe that compensates in some way?????  I'm confused.</p>
<p>Anyway maybe its better to only warn on < 0 and silently change 0 to 1 rather than give a warning for user input of 0.</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/pull/2973#issuecomment-955619387">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYCVZM53Q5I55BJRSLUJSLEHANCNFSM5HAS4DXQ">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/AAIOWJ4SQD4VBQGWDH6UUCTUJSLEHA5CNFSM5HAS4DX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHD2ZQOY.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#issuecomment-955619387",
"url": "https://github.com/geany/geany/pull/2973#issuecomment-955619387",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>