aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-21 17:13:58 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-21 18:01:58 +0200
commit679552d6db9771ddbf29bd02eb8392b3f319d4cb (patch)
tree2af606eb8fe1423908366313cdd5fbcdc9c46f45 /vis.c
parent38f00e3e8a50e1690dcb78cf1eca8b6befb7173b (diff)
downloadvis-679552d6db9771ddbf29bd02eb8392b3f319d4cb.tar.gz
vis-679552d6db9771ddbf29bd02eb8392b3f319d4cb.tar.xz
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.
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c4
1 files changed, 2 insertions, 2 deletions
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;