<p></p>
<p dir="auto">I had a look what Scintilla does with copy/pasting rectangular selections and probably have an explanation for what happens. Scintilla has to distinguish somehow whether the text in the clipboard is a rectangular selection or ordinary lines ending with <code>\n</code>. It does this by placing <code>\0</code> behind the <code>\n</code> for rectangular selections. So for example</p>
<pre><code>abc\n\0
abc\n\0
abc\n\0
</code></pre>
<p dir="auto">in clipboard is a rectangular selection,</p>
<pre><code>abc\n
abc\n
abc\n
</code></pre>
<p dir="auto">is ordinary selection.</p>
<p dir="auto">I assume that macOS just doesn't like the <code>\0</code> characters and drops them which effectively changes the rectangular selection in clipboard into ordinary selection.</p>
<p dir="auto">Maybe on macOS some other character could be used, e.g. <code>\1</code>, I'm just not sure how hard it would be to make this change in Scintilla.</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/2685#issuecomment-974538401">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4AOCVIZKYKW5JFINLUM3MVPANCNFSM4UNTUCJQ">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/AAIOWJ3INRI3OF5T3X3PRJ3UM3MVPA5CNFSM4UNTUCJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHILENII.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/issues/2685#issuecomment-974538401",
"url": "https://github.com/geany/geany/issues/2685#issuecomment-974538401",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>