diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-10-21 21:05:42 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-10-21 21:05:42 +0200 |
commit | a29382ea5d52f3bf3668b13dfe9a5d39c4769031 (patch) | |
tree | d7e8797802cd7ee627e1172c00b6d059633c0637 /src/expressions.h | |
parent | e9bef20a8ad89d304fe3e8fafa00056d22de2326 (diff) | |
download | sciteco-a29382ea5d52f3bf3668b13dfe9a5d39c4769031.tar.gz |
GTK/Win32: include trailing null byte in gtk_selection_data_set_text()
* This API behaves very strangely and differently compared to UNIX/X11.
When getting, it returns a trailing null for all clipboard contents
(unless the clipboard is empty) and when setting, we apparently have to include it as well.
At least since we cut it off when getting.
Even more strangely, setting without the trailing null did work
when pasting in external apps. (How they know when it's safe to throw
away the trailing null is mysterious.)
* In other words, this fixes X~G~.
Diffstat (limited to 'src/expressions.h')
0 files changed, 0 insertions, 0 deletions