[Github-comments] [geany/geany] MacOS: rectangular selection paste does not work as it does on Linux (#2685)

Jiří Techet notifications at xxxxx
Fri Nov 19 23:29:27 UTC 2021


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 `\n`. It does this by placing `\0` behind the `\n` for rectangular selections. So for example
```
abc\n\0
abc\n\0
abc\n\0
```
in clipboard is a rectangular selection,
```
abc\n
abc\n
abc\n
```
is ordinary selection.

I assume that macOS just doesn't like the `\0` characters and drops them which effectively changes the rectangular selection in clipboard into ordinary selection.

Maybe on macOS some other character could be used, e.g. `\1`, I'm just not sure how hard it would be to make this change in Scintilla.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2685#issuecomment-974538401
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211119/1836b3d5/attachment.htm>


More information about the Github-comments mailing list