<p></p>
<p>I changed <code>offset</code> to bool and kept the sign with <code>line_no</code> to see what it looks like.</p>
<ul>
<li>Calculating the destination line number is simplified.  No more multiplying by <code>offset</code> (which is confusing).</li>
<li><code>get_line_and_offset_from_text()</code> became a two-liner, so I removed it.</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#issuecomment-955644203">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZU5T573ZBSQJGIYE3UJTN3HANCNFSM5HAS4DXQ">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/AAIOWJ4WFVHLJ3VYP7TDJWTUJTN3HA5CNFSM5HAS4DX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHD27SKY.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-955644203",
"url": "https://github.com/geany/geany/pull/2973#issuecomment-955644203",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>