From 6b45ee350eab3de652ec1e9ed6d225c67e558054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 18 Oct 2015 21:19:28 +0200 Subject: 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. --- view.h | 1 + 1 file changed, 1 insertion(+) (limited to 'view.h') 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); -- cgit v1.2.3