<p></p>
<p dir="auto">Not a huge fan of this but I can understand the compatibility concern. I think we do need a plan to eventually match scintilla (i.e. have a consistent API too).</p>
<p dir="auto">E.g.</p>
<ol dir="auto">
<li>Introduce <code>sci_get_selected_text_length2()</code> with the new behavior and deprecate <code>sci_get_selected_text_length()</code> now</li>
<li>Remove <code>sci_get_selected_text_length()</code> at some later point</li>
<li>Re-introduce <code>sci_get_selected_text_length()</code> at some even more later point</li>
</ol>
<p dir="auto">We could also introduce some mechanism where plugins declare a API TARGET. E.g. if they target 242 (or none, because it's new) they get the old behavior, if they target 243 they get the new behavior.<br>
Obviously this works only for cases where we can handle the behavior change at compile time and in header-only.<br>
At some point we could reject plugins that target too old APIs (always with good reason, not "just because").</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3099#issuecomment-1011507779">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ65CI33MK67FOKQQ5DUVX55HANCNFSM5LZ46UMQ">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>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ5HL42443XT3NVIVMLUVX55HA5CNFSM5LZ46UM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHRFGEQY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/3099/c1011507779</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3099#issuecomment-1011507779",
"url": "https://github.com/geany/geany/pull/3099#issuecomment-1011507779",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>