mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 11:35:35 +03:00
GH-339 "Migrate" start
This commit is contained in:
parent
0029ffa684
commit
2b91b32e9b
@ -75,6 +75,10 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD
|
|||||||
|
|
||||||
switch (msgid) {
|
switch (msgid) {
|
||||||
|
|
||||||
|
case NeoVimAgentMsgIdAgentReady:
|
||||||
|
server_start_neovim();
|
||||||
|
return nil;
|
||||||
|
|
||||||
case NeoVimAgentMsgIdCommandOutput: return data_sync(data, outputCondition, neovim_vim_command_output);
|
case NeoVimAgentMsgIdCommandOutput: return data_sync(data, outputCondition, neovim_vim_command_output);
|
||||||
|
|
||||||
case NeoVimAgentMsgIdSelectWindow: return null_data_async(data, neovim_select_window);
|
case NeoVimAgentMsgIdSelectWindow: return null_data_async(data, neovim_select_window);
|
||||||
@ -236,10 +240,6 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD
|
|||||||
- (NSData *)handleMessageWithId:(SInt32)msgid data:(NSData *)data {
|
- (NSData *)handleMessageWithId:(SInt32)msgid data:(NSData *)data {
|
||||||
switch (msgid) {
|
switch (msgid) {
|
||||||
|
|
||||||
case NeoVimAgentMsgIdAgentReady:
|
|
||||||
server_start_neovim();
|
|
||||||
return nil;
|
|
||||||
|
|
||||||
case NeoVimAgentMsgIdInput: {
|
case NeoVimAgentMsgIdInput: {
|
||||||
NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
||||||
server_vim_input(string);
|
server_vim_input(string);
|
||||||
|
Loading…
Reference in New Issue
Block a user