From 679552d6db9771ddbf29bd02eb8392b3f319d4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 21 Jul 2015 17:13:58 +0200 Subject: ui: further separate curses related user interface code By now ui-curses.[hc] are the only files dealing directly with curses related functions. Integration of a proper mainloop is still pending. --- vis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index 339bfb0..594a7a9 100644 --- a/vis.c +++ b/vis.c @@ -2453,12 +2453,12 @@ int main(int argc, char *argv[]) { } } - if (!(vis = editor_new(ui_curses_new()))) + if (!(vis = editor_new(ui_curses_new(colors)))) die("Could not allocate editor core\n"); vis->mode_prev = vis->mode = config->mode; - if (!editor_syntax_load(vis, syntaxes, colors)) + if (!editor_syntax_load(vis, syntaxes)) die("Could not load syntax highlighting definitions\n"); char *cmd = NULL; -- cgit v1.2.3