diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2024-06-11 13:18:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 13:18:06 -0500 |
commit | 3ad977f01d97e84b576e6965c5c9e4f75c10cb35 (patch) | |
tree | 352ed37a4738a1f5a78f892c77817e9937d58a28 /src/nvim/base64.c | |
parent | 39d8651283c0458c20b755d2140c8a3cb7b581c5 (diff) | |
download | rneovim-3ad977f01d97e84b576e6965c5c9e4f75c10cb35.tar.gz rneovim-3ad977f01d97e84b576e6965c5c9e4f75c10cb35.tar.bz2 rneovim-3ad977f01d97e84b576e6965c5c9e4f75c10cb35.zip |
feat(terminal): add support for copying with OSC 52 in embedded terminal (#29117)
When libvterm receives the OSC 52 escape sequence it ignores it because
Nvim does not set any selection callbacks. Install selection callbacks
that forward to the clipboard provider, so that setting the clipboard
with OSC 52 in the embedded terminal writes to the system clipboard
using the configured clipboard provider.
Diffstat (limited to 'src/nvim/base64.c')
-rw-r--r-- | src/nvim/base64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/base64.c b/src/nvim/base64.c index 39e4ec4872..99d3c5a33e 100644 --- a/src/nvim/base64.c +++ b/src/nvim/base64.c @@ -142,6 +142,7 @@ char *base64_encode(const char *src, size_t src_len) /// @param [out] out_lenp Returns the length of the decoded string /// @return Decoded string char *base64_decode(const char *src, size_t src_len, size_t *out_lenp) + FUNC_ATTR_NONNULL_ALL { assert(src != NULL); assert(out_lenp != NULL); |