+10
-4
lines changedFilter options
+10
-4
lines changed Original file line number Diff line number Diff line change
@@ -126,8 +126,16 @@ static void tinput_wait_enqueue(void **argv)
126
126
const String keys = { .data = buf, .size = len };
127
127
if (input->paste) {
128
128
String copy = copy_string(keys);
129
-
multiqueue_put(main_loop.events, tinput_paste_event, 3,
130
-
copy.data, copy.size, (intptr_t)input->paste);
129
+
if (ui_client_channel_id) {
130
+
Array args = ARRAY_DICT_INIT;
131
+
ADD(args, STRING_OBJ(copy_string(keys))); // 'data'
132
+
ADD(args, BOOLEAN_OBJ(true)); // 'crlf'
133
+
ADD(args, INTEGER_OBJ(input->paste)); // 'phase'
134
+
rpc_send_event(ui_client_channel_id, "nvim_paste", args);
135
+
} else {
136
+
multiqueue_put(main_loop.events, tinput_paste_event, 3,
137
+
copy.data, copy.size, (intptr_t)input->paste);
138
+
}
131
139
if (input->paste == 1) {
132
140
// Paste phase: "continue"
133
141
input->paste = 2;
Original file line number Diff line number Diff line change
@@ -52,8 +52,6 @@ void ui_client_init(uint64_t chan)
52
52
53
53
/// Handler for "redraw" events sent by the NVIM server
54
54
///
55
-
/// This is just a stub. The mentioned functionality will be implemented.
56
-
///
57
55
/// This function will be called by handle_request (in msgpack_rpc/channel.c)
58
56
/// The individual ui_events sent by the server are individually handled
59
57
/// by their respective handlers defined in ui_events_client.generated.h
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4