mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
selection: reset clipboard/primary->text after free:ing it
This commit is contained in:
parent
dd18710bb7
commit
fcb2beebda
1 changed files with 2 additions and 0 deletions
|
|
@ -1010,6 +1010,7 @@ text_to_clipboard(struct seat *seat, struct terminal *term, char *text, uint32_t
|
||||||
|
|
||||||
clipboard->data_source = NULL;
|
clipboard->data_source = NULL;
|
||||||
clipboard->serial = 0;
|
clipboard->serial = 0;
|
||||||
|
clipboard->text = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
clipboard->data_source
|
clipboard->data_source
|
||||||
|
|
@ -1294,6 +1295,7 @@ text_to_primary(struct seat *seat, struct terminal *term, char *text, uint32_t s
|
||||||
|
|
||||||
primary->data_source = NULL;
|
primary->data_source = NULL;
|
||||||
primary->serial = 0;
|
primary->serial = 0;
|
||||||
|
primary->text = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
primary->data_source
|
primary->data_source
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue