From bf692fbc069b1b7eeb3228bad2ac6f58e30d6792 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Sat, 21 Jul 2018 11:23:15 +0200 Subject: [PATCH] Refactor slightly --- NvimView/NvimServer/main.m | 3 ++- NvimView/NvimServer/server_ui.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NvimView/NvimServer/main.m b/NvimView/NvimServer/main.m index 9f533d26..f0d4c6c5 100644 --- a/NvimView/NvimServer/main.m +++ b/NvimView/NvimServer/main.m @@ -11,8 +11,9 @@ #import "CocoaCategories.h" +static CFRunLoopRef _mainRunLoop; + NvimServer *_neovim_server; -CFRunLoopRef _mainRunLoop; static void observe_parent_termination() { pid_t parentPID = getppid(); diff --git a/NvimView/NvimServer/server_ui.h b/NvimView/NvimServer/server_ui.h index 85ab5f00..c1118879 100644 --- a/NvimView/NvimServer/server_ui.h +++ b/NvimView/NvimServer/server_ui.h @@ -9,7 +9,6 @@ @class NvimServer; extern NvimServer *_neovim_server; -extern CFRunLoopRef _mainRunLoop; extern void start_neovim(NSInteger width, NSInteger height, NSArray *args);