aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-18 21:19:28 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-11-08 13:37:23 +0100
commit6b45ee350eab3de652ec1e9ed6d225c67e558054 (patch)
treee9ac8b0bf866f4005e2bc3390a834967f84003d1 /view.h
parent55d22938311853415506860342511297827d00c1 (diff)
downloadvis-6b45ee350eab3de652ec1e9ed6d225c67e558054.tar.gz
vis-6b45ee350eab3de652ec1e9ed6d225c67e558054.tar.xz
vis: factor out syntax highlighting code
The view_draw function renders the text into the cells array and resyncs the cursor position. The syntax highlighting is applied in view_update, which also instructs the ui to update.
Diffstat (limited to 'view.h')
-rw-r--r--view.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/view.h b/view.h
index facccb1..da5cfb2 100644
--- a/view.h
+++ b/view.h
@@ -56,6 +56,7 @@ bool view_resize(View*, int width, int height);
int view_height_get(View*);
int view_width_get(View*);
void view_draw(View*);
+void view_update(View*);
/* changes how many spaces are used for one tab (must be >0), redraws the window */
void view_tabwidth_set(View*, int tabwidth);