aboutsummaryrefslogtreecommitdiff
path: root/editor.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 /editor.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 'editor.c')
-rw-r--r--editor.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/editor.c b/editor.c
index 8628458..fac598c 100644
--- a/editor.c
+++ b/editor.c
@@ -178,16 +178,10 @@ void editor_tabwidth_set(Editor *ed, int tabwidth) {
ed->tabwidth = tabwidth;
}
-bool editor_syntax_load(Editor *ed, Syntax *syntaxes, Color *colors) {
+bool editor_syntax_load(Editor *ed, Syntax *syntaxes) {
bool success = true;
ed->syntaxes = syntaxes;
- for (Color *color = colors; color && color->fg; color++) {
- if (color->attr == 0)
- color->attr = A_NORMAL;
- color->attr |= COLOR_PAIR(ed->ui->color_get(color->fg, color->bg));
- }
-
for (Syntax *syn = syntaxes; syn && syn->name; syn++) {
if (regcomp(&syn->file_regex, syn->file, REG_EXTENDED|REG_NOSUB|REG_ICASE|REG_NEWLINE))
success = false;