diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-10-18 21:19:28 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-08 13:37:23 +0100 |
| commit | 6b45ee350eab3de652ec1e9ed6d225c67e558054 (patch) | |
| tree | e9ac8b0bf866f4005e2bc3390a834967f84003d1 /view.h | |
| parent | 55d22938311853415506860342511297827d00c1 (diff) | |
| download | vis-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
