mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
Merge pull request #16602 from zeertzjq/tui-end-streamed-paste
This commit is contained in:
@@ -114,6 +114,12 @@ static void tinput_done_event(void **argv)
|
||||
static void tinput_wait_enqueue(void **argv)
|
||||
{
|
||||
TermInput *input = argv[0];
|
||||
if (rbuffer_size(input->key_buffer) == 0 && input->paste == 3) {
|
||||
const String keys = { .data = "", .size = 0 };
|
||||
String copy = copy_string(keys);
|
||||
multiqueue_put(main_loop.events, tinput_paste_event, 3,
|
||||
copy.data, copy.size, (intptr_t)input->paste);
|
||||
}
|
||||
RBUFFER_UNTIL_EMPTY(input->key_buffer, buf, len) {
|
||||
const String keys = { .data = buf, .size = len };
|
||||
if (input->paste) {
|
||||
|
Reference in New Issue
Block a user