1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-06 05:41:21 +01:00

54119: fix OSC52 clipboard get with empty clipboard

This commit is contained in:
Oliver Kiddle 2025-11-30 20:44:37 +01:00
parent 5539bc3fd5
commit fb1edae58f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2025-11-30 Oliver Kiddle <opk@zsh.org>
* 54119: Src/Zle/termquery.c: fix OSC52 clipboard get with
empty clipboard
2025-11-27 Oliver Kiddle <opk@zsh.org>
* unposted (c.f. Bart: 54112): Src/params.c: remove Unicode

View file

@ -626,7 +626,7 @@ system_clipget(char clip)
{
static seqstate_t osc52[] = OSC52_STATES;
char seq[] = "\033]52;.;?\033\\";
char *contents;
char *contents = NULL;
seq[5] = clip;
probe_terminal(seq, osc52, &handle_paste, &contents);
return contents;