From 2b91b32e9b46569c4494203c8085ee462abf4fee Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Fri, 6 Jan 2017 09:36:46 +0100 Subject: [PATCH] GH-339 "Migrate" start --- NeoVimServer/NeoVimServer.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NeoVimServer/NeoVimServer.m b/NeoVimServer/NeoVimServer.m index af72cfd1..b6f4c0c9 100644 --- a/NeoVimServer/NeoVimServer.m +++ b/NeoVimServer/NeoVimServer.m @@ -75,6 +75,10 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD switch (msgid) { + case NeoVimAgentMsgIdAgentReady: + server_start_neovim(); + return nil; + case NeoVimAgentMsgIdCommandOutput: return data_sync(data, outputCondition, neovim_vim_command_output); 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 { switch (msgid) { - case NeoVimAgentMsgIdAgentReady: - server_start_neovim(); - return nil; - case NeoVimAgentMsgIdInput: { NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; server_vim_input(string);